svn-gvsig-desktop / tags / v1_9_Build_1227 / extensions / extDataLocator / build.xml @ 47830
History | View | Annotate | Download (5.94 KB)
1 | 2257 | jmorell | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | 2276 | jmorell | Instala el plugin del Localizador por atributo en Andami. |
4 | 2257 | jmorell | </description>
|
5 | <!-- set global properties for this build -->
|
||
6 | 5704 | cesar | <property name="andami" location="../_fwAndami" /> |
7 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
8 | 2257 | jmorell | <property name="src" location="src"/> |
9 | 5704 | cesar | <property name="build" location="bin"/> |
10 | 13634 | cesar | <property name="src-test" location="src-test"/> |
11 | <property name="build-test" location="bin-test"/> |
||
12 | 2276 | jmorell | <property name="doc" location="doc"/> |
13 | 2257 | jmorell | <property name="dist" location="dist"/> |
14 | 2276 | jmorell | <property name="without_src" location="without_src"/> |
15 | 2257 | jmorell | <property name="plugin" value="com.iver.gvsig.datalocator"/> |
16 | 5704 | cesar | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
17 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
18 | <property name="andamiLibs" location="${andami}/lib" /> |
||
19 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
20 | 9658 | cesar | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
21 | 5704 | cesar | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
22 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
23 | 2257 | jmorell | |
24 | <target name="init"> |
||
25 | <!-- Create the time stamp -->
|
||
26 | <tstamp/> |
||
27 | 2276 | jmorell | </target>
|
28 | |||
29 | 13126 | jmvivo | |
30 | 2484 | jmorell | <target name="dist" depends="init" |
31 | 2276 | jmorell | description="generate the distribution" > |
32 | <!-- Remove previous distribution directory -->
|
||
33 | <delete dir="${dist}"/> |
||
34 | <!-- Create the distribution directory structure -->
|
||
35 | 2257 | jmorell | <mkdir dir="${dist}"/> |
36 | 2276 | jmorell | <mkdir dir="${dist}/src"/> |
37 | <mkdir dir="${dist}/doc"/> |
||
38 | <mkdir dir="${dist}/bin"/> |
||
39 | <mkdir dir="${dist}/bin/com"/> |
||
40 | <mkdir dir="${dist}/bin/com/iver"/> |
||
41 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
42 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator"/> |
||
43 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator/images"/> |
||
44 | <mkdir dir="${dist}/images"/> |
||
45 | <mkdir dir="${dist}/config"/> |
||
46 | <!-- Copy necessary distribution files to dist dir -->
|
||
47 | <copy todir="${dist}/src"> |
||
48 | <fileset dir="${src}"/> |
||
49 | </copy>
|
||
50 | <copy todir="${dist}/doc"> |
||
51 | <fileset dir="${doc}"/> |
||
52 | </copy>
|
||
53 | <copy todir="${dist}/images"> |
||
54 | <fileset dir="images"/> |
||
55 | </copy>
|
||
56 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
57 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
58 | 2491 | jmorell | <copy file="build.xml" todir="${dist}"/> |
59 | 2276 | jmorell | <copy todir="${dist}"> |
60 | 5704 | cesar | <fileset dir="config" includes="text*.properties"/> |
61 | 2276 | jmorell | </copy>
|
62 | 5704 | cesar | <!-- <copy todir="${dist}/bin/com/iver/gvsig/datalocator">
|
63 | 2491 | jmorell | <fileset dir="." includes="text*.properties"/>
|
64 | 5704 | cesar | </copy> -->
|
65 | <jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${build}"/> |
||
66 | 2276 | jmorell | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
67 | 10187 | jmvivo | <copy file="build.number" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
68 | 2276 | jmorell | <copy todir="${dist}/bin/com/iver/gvsig/datalocator/images"> |
69 | <fileset dir="images"/> |
||
70 | </copy>
|
||
71 | <!-- Zip distribution -->
|
||
72 | <zip destfile="${dist}/gvSIGDataLocatorPlugin.zip" |
||
73 | basedir="${dist}" |
||
74 | update="true" |
||
75 | />
|
||
76 | 2257 | jmorell | </target>
|
77 | |||
78 | 5704 | cesar | <target name="clean-orig" |
79 | 2276 | jmorell | description="clean dist directory" > |
80 | <!-- Clean the distribution directory -->
|
||
81 | <delete dir="${dist}/src"/> |
||
82 | <delete dir="${dist}/doc"/> |
||
83 | <delete dir="${dist}/bin"/> |
||
84 | <delete dir="${dist}/images"/> |
||
85 | <delete dir="${dist}/config"/> |
||
86 | 2491 | jmorell | <delete file="${dist}/build.xml"/> |
87 | 5704 | cesar | <delete failonerror="false"> |
88 | 2491 | jmorell | <fileset dir="${dist}" includes="**/*.properties"/> |
89 | </delete>
|
||
90 | 2276 | jmorell | </target>
|
91 | 13126 | jmvivo | |
92 | 5704 | cesar | <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
93 | 2257 | jmorell | <!-- Create the distribution directory -->
|
94 | 2276 | jmorell | <mkdir dir="${without_src}"/> |
95 | 2257 | jmorell | |
96 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
97 | 5704 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
98 | 2276 | jmorell | <copy file="config/config.xml" todir="${without_src}"/> |
99 | 10187 | jmvivo | <copy file="build.number" todir="${without_src}"/> |
100 | 2276 | jmorell | <copy todir="${without_src}"> |
101 | 5704 | cesar | <fileset dir="config" includes="text*.properties"/> |
102 | 2257 | jmorell | </copy>
|
103 | 2276 | jmorell | <copy todir="${without_src}/images"> |
104 | 2257 | jmorell | <fileset dir="images/" includes="*"/> |
105 | </copy>
|
||
106 | 5704 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
107 | 2276 | jmorell | <fileset dir="${without_src}" includes="**/**"/> |
108 | 2257 | jmorell | </move>
|
109 | </target>
|
||
110 | 13126 | jmvivo | |
111 | 5704 | cesar | <target name="batch-build" |
112 | description="compile the sources, create the jar file" |
||
113 | depends="compile,create-jar,copy-data-files,move-to-andami"> |
||
114 | </target>
|
||
115 | 2276 | jmorell | |
116 | 5704 | cesar | <target name="compile" description="compile the source" > |
117 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
118 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
119 | 5704 | cesar | <mkdir dir="${build}" /> |
120 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
121 | 13296 | jmvivo | <gvSIG-javac
|
122 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
123 | />
|
||
124 | 13126 | jmvivo | <!--<javac srcdir="${src}"
|
125 | 5704 | cesar | destdir="${build}"
|
126 | 12272 | cesar | source="${JavaSourceVersion}"
|
127 | target="${JavaTargetVersion}"
|
||
128 | 6296 | cesar | debug="${debug}"
|
129 | debuglevel="${debuglevel}"
|
||
130 | 12272 | cesar | classpath="${compile-classpath}"
|
131 | 13126 | jmvivo | encoding="${encoding}"/>-->
|
132 | 5704 | cesar | </target>
|
133 | 13126 | jmvivo | |
134 | 5704 | cesar | <target name="create-jar" |
135 | description="Creates the plugin jar"> |
||
136 | <mkdir dir="${dist}"/> |
||
137 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
138 | </target>
|
||
139 | |||
140 | <target name="copy-data-files"> |
||
141 | <copy file="config/config.xml" todir="${dist}"/> |
||
142 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
143 | 5704 | cesar | <copy todir="${dist}"> |
144 | <fileset dir="config" includes="text*.properties"/> |
||
145 | </copy>
|
||
146 | <copy todir="${dist}/images"> |
||
147 | <fileset dir="images/" includes="*"/> |
||
148 | </copy>
|
||
149 | </target>
|
||
150 | 13126 | jmvivo | |
151 | 5704 | cesar | <target name="move-to-andami"> |
152 | <move todir="${extensionsDir}/${plugin}/"> |
||
153 | <fileset dir="${dist}" includes="**/**"/> |
||
154 | </move>
|
||
155 | </target>
|
||
156 | 13126 | jmvivo | |
157 | 5704 | cesar | <target name="clean" |
158 | description="clean up" > |
||
159 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
160 | <delete dir="${dist}"/> |
||
161 | <delete dir="${build}"/> |
||
162 | </target>
|
||
163 | 13467 | cesar | |
164 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
165 | <antcall target="generic-run-tests"> |
||
166 | <param name="TestSuite.Name" value="com.iver.gvsig.datalocator.AllTests"/> |
||
167 | </antcall>
|
||
168 | </target>
|
||
169 | 2257 | jmorell | </project>
|