svn-gvsig-desktop / tags / tmp_build_del / extensions / extSextanteGvsigBindings / build.xml @ 44067
History | View | Annotate | Download (4.2 KB)
1 | 24475 | nbrodin | <project name="" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | </description>
|
||
4 | 24970 | jmvivo | |
5 | <import file="../binaries/ant/utilities.xml"/> |
||
6 | 24475 | nbrodin | <!-- set global properties for this build -->
|
7 | <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
||
8 | <property name="gvSIG-lib-dir" location="${extensions-dir}/com.iver.cit.gvsig/lib"/> |
||
9 | <property name="src" location="src"/> |
||
10 | <property name="bin" location="bin"/> |
||
11 | <property name="doc" location="doc"/> |
||
12 | 24971 | jmvivo | <property name="dist" location="dist-tmp"/> |
13 | 24475 | nbrodin | <property name="build" location="bin"/> |
14 | <property name="without_src" location="without_src"/> |
||
15 | <property name="plugin" value="es.unex.sextante"/> |
||
16 | <property name="andami" location="../_fwAndami/lib"/> |
||
17 | <property name="fmap" location="../libFMap/lib"/> |
||
18 | |||
19 | 24970 | jmvivo | <target name="init"> |
20 | <mkdir dir="${bin}"/> |
||
21 | <mkdir dir="${dist}" /> |
||
22 | </target>
|
||
23 | |||
24 | 24475 | nbrodin | <target name="generate-without-source" |
25 | 24970 | jmvivo | 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 | 29409 | yhijazi | <copy file="config/about.htm" todir="${dist}"/> |
44 | <copy file="build.number" todir="${dist}"/> |
||
45 | <loadproperties srcFile="build.number"/> |
||
46 | <replace casesensitive="true" |
||
47 | file="${dist}/about.htm" |
||
48 | token="#build.number#" |
||
49 | value="${build.number}"/> |
||
50 | |||
51 | 24970 | jmvivo | <copy todir="${dist}/images"> |
52 | <fileset dir="images" includes="**"/> |
||
53 | </copy>
|
||
54 | <!-- OJO -->
|
||
55 | <copy todir="${dist}" overwrite="true"> |
||
56 | <fileset dir="./sextante" includes="**" /> |
||
57 | </copy>
|
||
58 | |||
59 | |||
60 | </target>
|
||
61 | |||
62 | <target name="copy-to-andami"> |
||
63 | <copy todir="${extensions-dir}/${plugin}/"> |
||
64 | <fileset dir="${dist}" includes="**/**"/> |
||
65 | </copy>
|
||
66 | <!--<copy todir="${gvSIG-lib-dir}" overwrite="true">
|
||
67 | <fileset dir="./sextante" includes="**" />
|
||
68 | </copy>-->
|
||
69 | |||
70 | </target>
|
||
71 | |||
72 | <target name="clean-dist"> |
||
73 | <delete dir="${dist}"></delete> |
||
74 | </target>
|
||
75 | |||
76 | <target name="clean" description="clean up" > |
||
77 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
78 | <delete dir="${dist}"/> |
||
79 | <delete dir="${build}"/> |
||
80 | </target>
|
||
81 | |||
82 | |||
83 | <target name="batch-build" |
||
84 | description="compile the sources, create the jar file" |
||
85 | depends="init,compile,create-jar,copy-data-files,copy-to-andami"> |
||
86 | </target>
|
||
87 | |||
88 | <target name="compile" description="compile the source" > |
||
89 | 29409 | yhijazi | <!-- <antcall target="gvSIG-import-build-number"/> -->
|
90 | 24970 | jmvivo | <!-- Compile the Java code from ${src} to ${build} -->
|
91 | <mkdir dir="${build}" /> |
||
92 | <loadEclipseClasspath project="${basedir}"/> |
||
93 | <gvSIG-javac
|
||
94 | classpath="${eclipseClasspath}" |
||
95 | />
|
||
96 | </target>
|
||
97 | |||
98 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
99 | <antcall target="generic-run-tests"> |
||
100 | <param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/> |
||
101 | </antcall>
|
||
102 | </target>
|
||
103 | |||
104 | <!-- lo que habia antes -->
|
||
105 | <target name="generate-without-source-old" |
||
106 | 24475 | nbrodin | description="generate the distribution without the source file"> |
107 | <!-- Create the distribution directory -->
|
||
108 | <mkdir dir="${without_src}"/> |
||
109 | |||
110 | <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
||
111 | |||
112 | <copy todir="${without_src}"> |
||
113 | <fileset dir="config/" includes="*"/> |
||
114 | </copy>
|
||
115 | <copy todir="${without_src}/images"> |
||
116 | <fileset dir="images" includes="**"/> |
||
117 | </copy>
|
||
118 | <move todir="${extensions-dir}/${plugin}/"> |
||
119 | <fileset dir="${without_src}" includes="**/**"/> |
||
120 | </move>
|
||
121 | 24489 | nbrodin | <copy todir="${gvSIG-lib-dir}" overwrite="true"> |
122 | <fileset dir="./sextante" includes="**" /> |
||
123 | 24475 | nbrodin | </copy>
|
124 | </target>
|
||
125 | |||
126 | 29409 | yhijazi | <target name="buildNumber"> |
127 | <propertyfile file="build.number" |
||
128 | comment="Build Number for ANT. Do not edit!"> |
||
129 | <entry key="build.number" default="0" type="int" operation="+" /> |
||
130 | </propertyfile>
|
||
131 | <property file="build.number" /> |
||
132 | </target>
|
||
133 | |||
134 | <target name="distribution" |
||
135 | depends="buildNumber,generate-without-source"/> |
||
136 | |||
137 | 24475 | nbrodin | </project> |