1 |
1 |
<project name="" default="generate-without-source" basedir=".">
|
2 |
2 |
<description>
|
3 |
3 |
</description>
|
|
4 |
|
|
5 |
<import file="../binaries/ant/utilities.xml"/>
|
4 |
6 |
<!-- set global properties for this build -->
|
5 |
7 |
<property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/>
|
6 |
8 |
<property name="gvSIG-lib-dir" location="${extensions-dir}/com.iver.cit.gvsig/lib"/>
|
... | ... | |
14 |
16 |
<property name="andami" location="../_fwAndami/lib"/>
|
15 |
17 |
<property name="fmap" location="../libFMap/lib"/>
|
16 |
18 |
|
|
19 |
<target name="init">
|
|
20 |
<mkdir dir="${bin}"/>
|
|
21 |
<mkdir dir="${dist}" />
|
|
22 |
</target>
|
|
23 |
|
17 |
24 |
<target name="generate-without-source"
|
|
25 |
description="generate the distribution without the source file"
|
|
26 |
depends="init,create-jar,copy-data-files,copy-to-andami,clean-dist">
|
|
27 |
|
|
28 |
</target>
|
|
29 |
|
|
30 |
<target name="create-jar">
|
|
31 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${bin}"/>
|
|
32 |
</target>
|
|
33 |
|
|
34 |
<target name="fix-jama">
|
|
35 |
<echo> ARREGLAR JAMA!!!!!</echo>
|
|
36 |
|
|
37 |
</target>
|
|
38 |
|
|
39 |
<target name="copy-data-files">
|
|
40 |
<copy todir="${dist}">
|
|
41 |
<fileset dir="config/" includes="*"/>
|
|
42 |
</copy>
|
|
43 |
<copy todir="${dist}/images">
|
|
44 |
<fileset dir="images" includes="**"/>
|
|
45 |
</copy>
|
|
46 |
<!-- OJO -->
|
|
47 |
<copy todir="${dist}" overwrite="true">
|
|
48 |
<fileset dir="./sextante" includes="**" />
|
|
49 |
</copy>
|
|
50 |
|
|
51 |
|
|
52 |
</target>
|
|
53 |
|
|
54 |
<target name="copy-to-andami">
|
|
55 |
<copy todir="${extensions-dir}/${plugin}/">
|
|
56 |
<fileset dir="${dist}" includes="**/**"/>
|
|
57 |
</copy>
|
|
58 |
<!--<copy todir="${gvSIG-lib-dir}" overwrite="true">
|
|
59 |
<fileset dir="./sextante" includes="**" />
|
|
60 |
</copy>-->
|
|
61 |
|
|
62 |
</target>
|
|
63 |
|
|
64 |
<target name="clean-dist">
|
|
65 |
<delete dir="${dist}"></delete>
|
|
66 |
</target>
|
|
67 |
|
|
68 |
<target name="clean" description="clean up" >
|
|
69 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
|
70 |
<delete dir="${dist}"/>
|
|
71 |
<delete dir="${build}"/>
|
|
72 |
</target>
|
|
73 |
|
|
74 |
|
|
75 |
<target name="batch-build"
|
|
76 |
description="compile the sources, create the jar file"
|
|
77 |
depends="init,compile,create-jar,copy-data-files,copy-to-andami">
|
|
78 |
</target>
|
|
79 |
|
|
80 |
<target name="compile" description="compile the source" >
|
|
81 |
<antcall target="gvSIG-import-build-number"/>
|
|
82 |
<!-- Compile the Java code from ${src} to ${build} -->
|
|
83 |
<mkdir dir="${build}" />
|
|
84 |
<loadEclipseClasspath project="${basedir}"/>
|
|
85 |
<gvSIG-javac
|
|
86 |
classpath="${eclipseClasspath}"
|
|
87 |
/>
|
|
88 |
</target>
|
|
89 |
|
|
90 |
<target name="run-tests" depends="batch-build,compile-tests">
|
|
91 |
<antcall target="generic-run-tests">
|
|
92 |
<param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/>
|
|
93 |
</antcall>
|
|
94 |
</target>
|
|
95 |
|
|
96 |
<!-- lo que habia antes -->
|
|
97 |
<target name="generate-without-source-old"
|
18 |
98 |
description="generate the distribution without the source file">
|
19 |
99 |
<!-- Create the distribution directory -->
|
20 |
100 |
<mkdir dir="${without_src}"/>
|