svn-gvsig-desktop / trunk / extensions / extExpressionField / build.xml @ 28289
History | View | Annotate | Download (5.76 KB)
1 | 13444 | caballero | <project name="extExpressionField" default="deploy" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | 10229 | caballero | Instala el plugin de Centrar la Vista sobre un punto en Andami. |
4 | </description>
|
||
5 | 13444 | caballero | <!-- set global properties for this build -->
|
6 | <property name="src" location="src"/> |
||
7 | 13478 | cesar | <property name="build" location="bin"/> |
8 | <property name="src-test" location="src-test"/> |
||
9 | <property name="build-test" location="build-test"/> |
||
10 | 13444 | caballero | <property name="doc" location="doc"/> |
11 | <property name="dist" location="dist"/> |
||
12 | <property name="dist-src-name" value="dist-src"/> |
||
13 | <property name="dist-src" location="${dist-src-name}"/> |
||
14 | <property name="without_src" location="without_src"/> |
||
15 | <property name="plugin" value="com.iver.gvsig.expressionfield"/> |
||
16 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
17 | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
||
18 | <property name="readMe.files" value="Leeme-ExpressionField.txt, Readme-ExpressionField.txt"/> |
||
19 | <property name="andami" location="../_fwAndami"/> |
||
20 | <property name="andamiLibs" location="${andami}/lib"/> |
||
21 | <property name="fmap" location="../libFMap"/> |
||
22 | <property name="fmapLibs" location="${fmap}/lib"/> |
||
23 | <property name="scripting" location="../extScripting"/> |
||
24 | <property name="scriptingLibs" location="${scripting}/lib"/> |
||
25 | <property name="installLibDir" location="${extensionDir}/${mainplugin}/lib"/> |
||
26 | <property name="cad_gvsig_jar" location="${extensionDir}/${mainplugin}.cad/${mainplugin}.cad.jar"/> |
||
27 | 13478 | cesar | <import file="../binaries/ant/utilities.xml"/> |
28 | 13444 | caballero | <target name="init"> |
29 | <!-- Create the time stamp -->
|
||
30 | <echo>
|
||
31 | Compiling ${ant.project.name}...</echo>
|
||
32 | <tstamp/> |
||
33 | <mkdir dir="${without_src}"/> |
||
34 | </target>
|
||
35 | 10229 | caballero | |
36 | 13444 | caballero | |
37 | <target name="generate-source-package"> |
||
38 | <delete dir="${dist-src}" quiet="yes"/> |
||
39 | <mkdir dir="${dist-src}"/> |
||
40 | <basename file="${basedir}" property="extensionProjectDir"/> |
||
41 | <mkdir dir="${dist-src}/${extensionProjectDir}"/> |
||
42 | <copy todir="${dist-src}/${extensionProjectDir}"> |
||
43 | <fileset dir="${basedir}"/> |
||
44 | </copy>
|
||
45 | <copy todir="${dist-src}"> |
||
46 | <fileset dir="${basedir}/install/resources" includes="${readMe.files}"/> |
||
47 | </copy>
|
||
48 | <delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
||
49 | <mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
||
50 | <delete dir="${dist-src}/${extensionProjectDir}/install"/> |
||
51 | <delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
||
52 | <delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
||
53 | <loadproperties srcFile="build.number"/> |
||
54 | <replace casesensitive="true" |
||
55 | token="#build.number#" |
||
56 | value="${build.number}" |
||
57 | dir="${dist-src}" |
||
58 | includes="${readMe.files}"/> |
||
59 | <zip destfile="${dist-src}/gvsig_expressionfield-01_${build.number}-src.zip" |
||
60 | basedir="${dist-src-name}" |
||
61 | excludes="*.zip" |
||
62 | />
|
||
63 | |||
64 | </target>
|
||
65 | |||
66 | <target name="distribution" description="increment build number and generate the distribution without the source file" > |
||
67 | <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo> |
||
68 | <!-- -->
|
||
69 | 10335 | caballero | </target>
|
70 | 13444 | caballero | <target name="generate-without-source" description="generate the distribution without the source file" > |
71 | <!-- Create the distribution directory -->
|
||
72 | <mkdir dir="${without_src}"/> |
||
73 | 10229 | caballero | |
74 | 13444 | caballero | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
75 | 13532 | jmvivo | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
76 | 13444 | caballero | <copy file="config/config.xml" todir="${without_src}"/> |
77 | <copy file="build.number" todir="${without_src}"/> |
||
78 | <copy file="config/about.htm" todir="${without_src}"/> |
||
79 | <loadproperties srcFile="build.number"/> |
||
80 | <replace casesensitive="true" |
||
81 | 10335 | caballero | file="${without_src}/about.htm" |
82 | token="#build.number#" |
||
83 | value="${build.number}"/> |
||
84 | 13444 | caballero | <copy todir="${without_src}"> |
85 | <fileset dir="config" includes="text*.properties"/> |
||
86 | </copy>
|
||
87 | <copy todir="${without_src}/images"> |
||
88 | <fileset dir="images/" includes="*"/> |
||
89 | </copy>
|
||
90 | <move todir="${extensionDir}/${plugin}/"> |
||
91 | <fileset dir="${without_src}" includes="**/**"/> |
||
92 | </move>
|
||
93 | </target>
|
||
94 | 10229 | caballero | |
95 | 13444 | caballero | |
96 | <target name="deploy" |
||
97 | description="compile the sources, create the jar file" |
||
98 | depends="init,create-jar,copy-data-files,move-to-andami"> |
||
99 | </target>
|
||
100 | |||
101 | <target name="batch-build" |
||
102 | description="compile the sources, create the jar file" |
||
103 | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
||
104 | </target>
|
||
105 | |||
106 | <target name="compile" description="compile the source" > |
||
107 | 13478 | cesar | <!-- Compile the Java code from ${src} to ${build} -->
|
108 | <antcall target="gvSIG-import-build-number"/> |
||
109 | <mkdir dir="${build}" /> |
||
110 | <loadEclipseClasspath project="${basedir}"/> |
||
111 | <gvSIG-javac
|
||
112 | classpath="${eclipseClasspath}" /> |
||
113 | 13444 | caballero | </target>
|
114 | |||
115 | <target name="create-jar" |
||
116 | description="Creates the plugin jar"> |
||
117 | 13532 | jmvivo | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
118 | 13444 | caballero | </target>
|
119 | |||
120 | <target name="copy-data-files"> |
||
121 | <copy file="config/config.xml" todir="${without_src}"/> |
||
122 | <copy file="build.number" todir="${without_src}"/> |
||
123 | <copy file="config/about.htm" todir="${without_src}"/> |
||
124 | <loadproperties srcFile="build.number"/> |
||
125 | <replace casesensitive="true" |
||
126 | file="${without_src}/about.htm" |
||
127 | token="#build.number#" |
||
128 | value="${build.number}"/> |
||
129 | <copy todir="${without_src}"> |
||
130 | <fileset dir="config" includes="text*.properties"/> |
||
131 | </copy>
|
||
132 | <copy todir="${without_src}/images"> |
||
133 | <fileset dir="images/" includes="*"/> |
||
134 | </copy>
|
||
135 | </target>
|
||
136 | |||
137 | |||
138 | <target name="move-to-andami"> |
||
139 | <move todir="${extensionDir}/${plugin}/"> |
||
140 | <fileset dir="${without_src}" includes="**/**"/> |
||
141 | </move>
|
||
142 | </target>
|
||
143 | |||
144 | <target name="clean"> |
||
145 | <delete dir="${dist}" failonerror="false"/> |
||
146 | <delete dir="${dist-src}" failonerror="false"/> |
||
147 | </target>
|
||
148 | |||
149 | 13478 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
150 | <antcall target="generic-run-tests"> |
||
151 | <param name="TestSuite.Name" value="org.gvsig.scripting.AllTests"/> |
||
152 | </antcall>
|
||
153 | </target>
|
||
154 | 10229 | caballero | </project>
|