12 |
12 |
<property name="andami-dir" location="../_fwAndami"/>
|
13 |
13 |
<property name="targetDir" location="../libFMap/lib" />
|
14 |
14 |
|
|
15 |
<import file="../binaries/ant/utilities.xml"/>
|
|
16 |
|
15 |
17 |
<target name="init">
|
16 |
18 |
<!-- Create the time stamp -->
|
17 |
19 |
<tstamp/>
|
... | ... | |
19 |
21 |
<mkdir dir="${build}"/>
|
20 |
22 |
<mkdir dir="${dist}"/>
|
21 |
23 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
22 |
|
<buildnumber/>
|
23 |
|
|
|
24 |
<!--<buildnumber/>-->
|
|
25 |
|
24 |
26 |
</target>
|
25 |
27 |
|
26 |
|
<target name="compile"
|
27 |
|
description="compile the source" >
|
28 |
|
<!-- Compile the Java code from ${src} to ${bin} -->
|
29 |
|
<javac srcdir="${src}"
|
30 |
|
destdir="${build}"
|
31 |
|
classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>
|
32 |
|
</target>
|
33 |
|
|
34 |
|
<target name="generate-without-source" description="generate the distribution without the source file" >
|
35 |
|
<!-- Create the distribution directory -->
|
36 |
|
<mkdir dir="${dist}"/>
|
37 |
28 |
|
|
29 |
<target name="batch-build"
|
|
30 |
description="compile the sources, create the jar file"
|
|
31 |
depends="init,compile,create-jar,copy-data-files,move-to-andami">
|
|
32 |
</target>
|
|
33 |
|
|
34 |
<target name="compile" description="compile the source" >
|
|
35 |
<!-- Compile the Java code from ${src} to ${build} -->
|
|
36 |
<antcall target="gvSIG-import-build-number"/>
|
|
37 |
<mkdir dir="${build}" />
|
|
38 |
<loadEclipseClasspath project="${basedir}"/>
|
|
39 |
<gvSIG-javac
|
|
40 |
classpath="${eclipseClasspath}"
|
|
41 |
/>
|
|
42 |
</target>
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
<target name="generate-without-source"
|
|
47 |
description="generate the distribution without the source file"
|
|
48 |
depends="init,create-jar,copy-data-files,move-to-andami"
|
|
49 |
/>
|
|
50 |
|
|
51 |
<target name="create-jar">
|
|
52 |
|
38 |
53 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
39 |
54 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
|
40 |
|
|
41 |
|
|
|
55 |
</target>
|
|
56 |
|
|
57 |
<target name="copy-data-files">
|
42 |
58 |
<copy file="config/config.xml" todir="${dist}"/>
|
|
59 |
<copy file="build.number" todir="${dist}"/>
|
43 |
60 |
<copy todir="${dist}">
|
44 |
61 |
<fileset dir="config" includes="text*.properties"/>
|
45 |
62 |
</copy>
|
46 |
63 |
<copy todir="${dist}/images">
|
47 |
64 |
<fileset dir="images/" includes="*"/>
|
48 |
65 |
</copy>
|
49 |
|
|
|
66 |
|
50 |
67 |
<copy todir="${targetDir}">
|
51 |
68 |
<fileset dir="${dist}" includes="**/**"/>
|
52 |
69 |
<fileset dir="${lib}" includes="**/**"/>
|
53 |
70 |
</copy>
|
54 |
|
|
|
71 |
|
|
72 |
</target>
|
|
73 |
|
|
74 |
<target name="move-to-andami">
|
|
75 |
|
55 |
76 |
<move todir="${extension-dir}/${plugin}/">
|
56 |
77 |
<fileset dir="${dist}" includes="**/**"/>
|
57 |
78 |
</move>
|
58 |
79 |
</target>
|
|
80 |
|
|
81 |
|
|
82 |
<target name="clean"
|
|
83 |
description="clean up" >
|
|
84 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
|
85 |
<delete dir="${dist}"/>
|
|
86 |
<delete dir="${build}"/>
|
|
87 |
</target>
|
59 |
88 |
</project>
|
60 |
89 |
|
61 |
90 |
|