Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1014 / libraries / libCorePlugin / build.xml @ 33915

History | View | Annotate | Download (3.52 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 10565 jmvivo
        <property name="JavaSourceVersion" value="1.4"/>
15 12969 cesar
        <property name="JavaTargetVersion" value="1.4"/>
16
        <property name="debug" value="on"/>
17
        <property name="debuglevel" value="lines, vars"/>
18
        <property name="encoding" value="ISO_8859_1"/>
19 592 fernando
20
  <target name="init">
21
    <!-- Create the time stamp -->
22
    <tstamp/>
23
    <!-- Create the build directory structure used by compile -->
24
    <mkdir dir="${build}"/>
25
  </target>
26
27 10185 jmvivo
28
  <target name="import-build-number">
29
          <copy todir=".">
30
                  <fileset file="${buildNumberFile}"/>
31
          </copy>
32
  </target>
33
34 592 fernando
  <target name="dist" description="generate the distribution" >
35
    <!-- Create the distribution directory -->
36
    <mkdir dir="${dist}"/>
37
38
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
39
    <copy todir="${build}">
40
            <fileset dir="${src}" includes="**"/>
41
    </copy>
42
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
43 5712 cesar
    <copy file="config/config.xml" todir="${dist}"/>
44 10185 jmvivo
          <copy file="build.number" todir="${dist}"/>
45 592 fernando
    <copy todir="${dist}">
46 5712 cesar
            <fileset dir="config" includes="text*.properties"/>
47 592 fernando
    </copy>
48
    <copy todir="${dist}/images">
49
            <fileset dir="images/" includes="*"/>
50
    </copy>
51
    <copy todir="${dist}">
52
            <fileset dir="." includes="*.jar"/>
53
    </copy>
54
55
    <move todir="${targetDir}/${plugin}/">
56
            <fileset dir="${dist}" includes="**/**"/>
57
    </move>
58
  </target>
59
60 4852 cesar
    <target name="batch-build"
61
                description="compile the sources, create the jar file"
62
                depends="compile,create-jar,copy-data-files,move-to-andami">
63
    </target>
64
65
    <target name="compile" description="compile the source" >
66
        <!-- Compile the Java code from ${src} to ${build} -->
67
            <mkdir dir="${build}" />
68 7776 cesar
        <javac        srcdir="${src}"
69
                                destdir="${build}"
70 10565 jmvivo
                                source="${JavaSourceVersion}"
71
                                target="${JavaTargetVersion}"
72 7776 cesar
                                debug="${debug}"
73
                                debuglevel="${debuglevel}"
74 12969 cesar
                                classpath="${compile-classpath}"
75
                        encoding="${encoding}"/>
76 4852 cesar
        </target>
77
78
        <target name="copy-data-files">
79 5712 cesar
                <copy file="config/config.xml" todir="${dist}"/>
80 10185 jmvivo
                <copy file="build.number" todir="${dist}"/>
81 4852 cesar
                <copy todir="${dist}">
82 5712 cesar
                        <fileset dir="config" includes="text*.properties"/>
83 4852 cesar
                </copy>
84
                <copy todir="${dist}/images">
85
                        <fileset dir="images/" includes="*"/>
86
                </copy>
87
                <copy todir="${dist}">
88
                        <fileset dir="." includes="*.jar"/>
89
                </copy>
90
    </target>
91
92
        <target name="move-to-andami" description="Moves the build directory to andami">
93
            <move todir="${targetDir}/${plugin}/">
94
                    <fileset dir="${dist}" includes="**/**"/>
95
            </move>
96
        </target>
97
98
        <target name="create-jar" description="Crea el jar de la aplicacion">
99
                <mkdir dir="${dist}"/>
100
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
101
        </target>
102
103
        <target name="clean" description="clean up" >
104
                <!-- Delete the ${build} and ${dist} directory trees -->
105
                <delete dir="${build}"/>
106
                <delete dir="${dist}"/>
107
        </target>
108
109 592 fernando
</project>