svn-gvsig-desktop / tags / v1_11_0_Build_1301 / extensions / extDataLocator / build.xml @ 39128
History | View | Annotate | Download (6.06 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 | 34510 | fdiaz | <echo>
|
28 | Compiling ${ant.project.name}...</echo>
|
||
29 | 2276 | jmorell | </target>
|
30 | |||
31 | 13126 | jmvivo | |
32 | 2484 | jmorell | <target name="dist" depends="init" |
33 | 2276 | jmorell | description="generate the distribution" > |
34 | <!-- Remove previous distribution directory -->
|
||
35 | <delete dir="${dist}"/> |
||
36 | <!-- Create the distribution directory structure -->
|
||
37 | 2257 | jmorell | <mkdir dir="${dist}"/> |
38 | 2276 | jmorell | <mkdir dir="${dist}/src"/> |
39 | <mkdir dir="${dist}/doc"/> |
||
40 | <mkdir dir="${dist}/bin"/> |
||
41 | <mkdir dir="${dist}/bin/com"/> |
||
42 | <mkdir dir="${dist}/bin/com/iver"/> |
||
43 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
44 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator"/> |
||
45 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator/images"/> |
||
46 | <mkdir dir="${dist}/images"/> |
||
47 | <mkdir dir="${dist}/config"/> |
||
48 | <!-- Copy necessary distribution files to dist dir -->
|
||
49 | <copy todir="${dist}/src"> |
||
50 | <fileset dir="${src}"/> |
||
51 | </copy>
|
||
52 | <copy todir="${dist}/doc"> |
||
53 | <fileset dir="${doc}"/> |
||
54 | </copy>
|
||
55 | <copy todir="${dist}/images"> |
||
56 | <fileset dir="images"/> |
||
57 | </copy>
|
||
58 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
59 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
60 | 2491 | jmorell | <copy file="build.xml" todir="${dist}"/> |
61 | 2276 | jmorell | <copy todir="${dist}"> |
62 | 5704 | cesar | <fileset dir="config" includes="text*.properties"/> |
63 | 2276 | jmorell | </copy>
|
64 | 5704 | cesar | <!-- <copy todir="${dist}/bin/com/iver/gvsig/datalocator">
|
65 | 2491 | jmorell | <fileset dir="." includes="text*.properties"/>
|
66 | 5704 | cesar | </copy> -->
|
67 | <jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${build}"/> |
||
68 | 2276 | jmorell | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
69 | 10187 | jmvivo | <copy file="build.number" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
70 | 2276 | jmorell | <copy todir="${dist}/bin/com/iver/gvsig/datalocator/images"> |
71 | <fileset dir="images"/> |
||
72 | </copy>
|
||
73 | <!-- Zip distribution -->
|
||
74 | <zip destfile="${dist}/gvSIGDataLocatorPlugin.zip" |
||
75 | basedir="${dist}" |
||
76 | update="true" |
||
77 | />
|
||
78 | 2257 | jmorell | </target>
|
79 | |||
80 | 5704 | cesar | <target name="clean-orig" |
81 | 2276 | jmorell | description="clean dist directory" > |
82 | <!-- Clean the distribution directory -->
|
||
83 | <delete dir="${dist}/src"/> |
||
84 | <delete dir="${dist}/doc"/> |
||
85 | <delete dir="${dist}/bin"/> |
||
86 | <delete dir="${dist}/images"/> |
||
87 | <delete dir="${dist}/config"/> |
||
88 | 2491 | jmorell | <delete file="${dist}/build.xml"/> |
89 | 5704 | cesar | <delete failonerror="false"> |
90 | 2491 | jmorell | <fileset dir="${dist}" includes="**/*.properties"/> |
91 | </delete>
|
||
92 | 2276 | jmorell | </target>
|
93 | 13126 | jmvivo | |
94 | 5704 | cesar | <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
95 | 2257 | jmorell | <!-- Create the distribution directory -->
|
96 | 2276 | jmorell | <mkdir dir="${without_src}"/> |
97 | 2257 | jmorell | |
98 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
99 | 5704 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
100 | 2276 | jmorell | <copy file="config/config.xml" todir="${without_src}"/> |
101 | 10187 | jmvivo | <copy file="build.number" todir="${without_src}"/> |
102 | 2276 | jmorell | <copy todir="${without_src}"> |
103 | 5704 | cesar | <fileset dir="config" includes="text*.properties"/> |
104 | 2257 | jmorell | </copy>
|
105 | 2276 | jmorell | <copy todir="${without_src}/images"> |
106 | 2257 | jmorell | <fileset dir="images/" includes="*"/> |
107 | </copy>
|
||
108 | 5704 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
109 | 2276 | jmorell | <fileset dir="${without_src}" includes="**/**"/> |
110 | 2257 | jmorell | </move>
|
111 | </target>
|
||
112 | 13126 | jmvivo | |
113 | 5704 | cesar | <target name="batch-build" |
114 | description="compile the sources, create the jar file" |
||
115 | depends="compile,create-jar,copy-data-files,move-to-andami"> |
||
116 | </target>
|
||
117 | 2276 | jmorell | |
118 | 5704 | cesar | <target name="compile" description="compile the source" > |
119 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
120 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
121 | 5704 | cesar | <mkdir dir="${build}" /> |
122 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
123 | 13296 | jmvivo | <gvSIG-javac
|
124 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
125 | />
|
||
126 | 13126 | jmvivo | <!--<javac srcdir="${src}"
|
127 | 5704 | cesar | destdir="${build}"
|
128 | 12272 | cesar | source="${JavaSourceVersion}"
|
129 | target="${JavaTargetVersion}"
|
||
130 | 6296 | cesar | debug="${debug}"
|
131 | debuglevel="${debuglevel}"
|
||
132 | 12272 | cesar | classpath="${compile-classpath}"
|
133 | 13126 | jmvivo | encoding="${encoding}"/>-->
|
134 | 5704 | cesar | </target>
|
135 | 13126 | jmvivo | |
136 | 5704 | cesar | <target name="create-jar" |
137 | description="Creates the plugin jar"> |
||
138 | <mkdir dir="${dist}"/> |
||
139 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
140 | </target>
|
||
141 | |||
142 | 34510 | fdiaz | <target name="copy-data-files" depends="make-package-info"> |
143 | 5704 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
144 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
145 | 34510 | fdiaz | <copy file="package.info" todir="${dist}"/> |
146 | 5704 | cesar | <copy todir="${dist}"> |
147 | <fileset dir="config" includes="text*.properties"/> |
||
148 | </copy>
|
||
149 | <copy todir="${dist}/images"> |
||
150 | <fileset dir="images/" includes="*"/> |
||
151 | </copy>
|
||
152 | </target>
|
||
153 | 13126 | jmvivo | |
154 | 5704 | cesar | <target name="move-to-andami"> |
155 | <move todir="${extensionsDir}/${plugin}/"> |
||
156 | <fileset dir="${dist}" includes="**/**"/> |
||
157 | </move>
|
||
158 | </target>
|
||
159 | 13126 | jmvivo | |
160 | 5704 | cesar | <target name="clean" |
161 | description="clean up" > |
||
162 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
163 | <delete dir="${dist}"/> |
||
164 | <delete dir="${build}"/> |
||
165 | </target>
|
||
166 | 13467 | cesar | |
167 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
168 | <antcall target="generic-run-tests"> |
||
169 | <param name="TestSuite.Name" value="com.iver.gvsig.datalocator.AllTests"/> |
||
170 | </antcall>
|
||
171 | </target>
|
||
172 | 2257 | jmorell | </project>
|