Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_894 / libraries / libCorePlugin / build.xml @ 10309

History | View | Annotate | Download (3.23 KB)

1 592 fernando
<project name="Core plugin" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin
4
    </description>
5
  <!-- set global properties for this build -->
6 4852 cesar
        <property name="src" location="src"/>
7
        <property name="lib" location="../_fwAndami/lib"/>
8
        <property name="build" location="bin"/>
9
        <property name="dist"  location="dist"/>
10 4904 cesar
        <property name="andamiJar" location="../_fwAndami/andami.jar"/>
11 4852 cesar
        <property name="plugin" value="com.iver.core"/>
12
        <property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/>
13 8765 jjdelcerro
        <property name="compile-classpath" value="${lib}/castor-0.9.5.3-xml.jar:${lib}/iver-utiles.jar:${lib}/log4j-1.2.8.jar:${andamiJar}:${lib}/beans.jar" />
14 4852 cesar
15 592 fernando
16
  <target name="init">
17
    <!-- Create the time stamp -->
18
    <tstamp/>
19
    <!-- Create the build directory structure used by compile -->
20
    <mkdir dir="${build}"/>
21
  </target>
22
23 10185 jmvivo
24
  <target name="import-build-number">
25
          <copy todir=".">
26
                  <fileset file="${buildNumberFile}"/>
27
          </copy>
28
  </target>
29
30 592 fernando
  <target name="dist" description="generate the distribution" >
31
    <!-- Create the distribution directory -->
32
    <mkdir dir="${dist}"/>
33
34
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
35
    <copy todir="${build}">
36
            <fileset dir="${src}" includes="**"/>
37
    </copy>
38
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
39 5712 cesar
    <copy file="config/config.xml" todir="${dist}"/>
40 10185 jmvivo
          <copy file="build.number" todir="${dist}"/>
41 592 fernando
    <copy todir="${dist}">
42 5712 cesar
            <fileset dir="config" includes="text*.properties"/>
43 592 fernando
    </copy>
44
    <copy todir="${dist}/images">
45
            <fileset dir="images/" includes="*"/>
46
    </copy>
47
    <copy todir="${dist}">
48
            <fileset dir="." includes="*.jar"/>
49
    </copy>
50
51
    <move todir="${targetDir}/${plugin}/">
52
            <fileset dir="${dist}" includes="**/**"/>
53
    </move>
54
  </target>
55
56 4852 cesar
    <target name="batch-build"
57
                description="compile the sources, create the jar file"
58
                depends="compile,create-jar,copy-data-files,move-to-andami">
59
    </target>
60
61
    <target name="compile" description="compile the source" >
62
        <!-- Compile the Java code from ${src} to ${build} -->
63
            <mkdir dir="${build}" />
64 7776 cesar
        <javac        srcdir="${src}"
65
                                destdir="${build}"
66
                                source="1.4"
67
                                target="1.4"
68
                                debug="${debug}"
69
                                debuglevel="${debuglevel}"
70
                                classpath="${compile-classpath}"/>
71 4852 cesar
        </target>
72
73
        <target name="copy-data-files">
74 5712 cesar
                <copy file="config/config.xml" todir="${dist}"/>
75 10185 jmvivo
                <copy file="build.number" todir="${dist}"/>
76 4852 cesar
                <copy todir="${dist}">
77 5712 cesar
                        <fileset dir="config" includes="text*.properties"/>
78 4852 cesar
                </copy>
79
                <copy todir="${dist}/images">
80
                        <fileset dir="images/" includes="*"/>
81
                </copy>
82
                <copy todir="${dist}">
83
                        <fileset dir="." includes="*.jar"/>
84
                </copy>
85
    </target>
86
87
        <target name="move-to-andami" description="Moves the build directory to andami">
88
            <move todir="${targetDir}/${plugin}/">
89
                    <fileset dir="${dist}" includes="**/**"/>
90
            </move>
91
        </target>
92
93
        <target name="create-jar" description="Crea el jar de la aplicacion">
94
                <mkdir dir="${dist}"/>
95
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
96
        </target>
97
98
        <target name="clean" description="clean up" >
99
                <!-- Delete the ${build} and ${dist} directory trees -->
100
                <delete dir="${build}"/>
101
                <delete dir="${dist}"/>
102
        </target>
103
104 592 fernando
</project>