root / trunk / extensions / extSDE / build.xml @ 33642
History | View | Annotate | Download (3.22 KB)
1 | 13506 | cesar | <project name="Generar extension SDE en Andami" default="main" basedir="."> |
---|---|---|---|
2 | 2277 | vcaballero | <description>
|
3 | Instala el plugin en Andami |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 13496 | cesar | <import file="../binaries/ant/utilities.xml"/> |
7 | 2277 | vcaballero | <property name="src" location="src"/> |
8 | <property name="build" location="bin"/> |
||
9 | 13496 | cesar | <property name="src-test" location="src-test"/> |
10 | <property name="build-test" location="bin-test"/> |
||
11 | 2277 | vcaballero | <property name="dist" location="dist"/> |
12 | 13506 | cesar | <property name="plugin" value="org.gvsig.sde"/> |
13 | 11193 | caballero | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
14 | 13509 | caballero | <property name="targetDir" location="${extensionDir}/${plugin}"/> |
15 | 2277 | vcaballero | |
16 | 13506 | cesar | <target name="init"> |
17 | <!-- Create the time stamp -->
|
||
18 | <tstamp/> |
||
19 | <!-- Create the build directory structure used by compile -->
|
||
20 | <mkdir dir="${build}"/> |
||
21 | <mkdir dir="${dist}"/> |
||
22 | </target>
|
||
23 | 11193 | caballero | |
24 | 11971 | caballero | <target name="buildNumber"> |
25 | <propertyfile
|
||
26 | file="build.number" |
||
27 | comment="Build Number for ANT. Do not edit!"> |
||
28 | <entry key="build.number" default="0" type="int" operation="+"/> |
||
29 | </propertyfile>
|
||
30 | <property file="build.number"/> |
||
31 | </target>
|
||
32 | |||
33 | 13506 | cesar | <target name="main" |
34 | 11971 | caballero | description="increment build number and generate the distribution without the source file" |
35 | 13506 | cesar | depends="create-jar,copy-data-files,copy-libs,move-to-installDir"> |
36 | 11971 | caballero | </target>
|
37 | 13509 | caballero | |
38 | 13506 | cesar | <target name="dist" depends="buildNumber,main"/> |
39 | 11971 | caballero | |
40 | 13506 | cesar | <target name="batch-build" |
41 | description="compile the sources, create the jar file" |
||
42 | depends="compile,copy-data-files,create-jar,copy-libs,move-to-installDir"> |
||
43 | </target>
|
||
44 | 11193 | caballero | |
45 | 13506 | cesar | <target name="compile" description="compile the source"> |
46 | <!-- Create the build directory structure used by compile -->
|
||
47 | 13843 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
48 | 13506 | cesar | <mkdir dir="${build}"/> |
49 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
50 | <loadEclipseClasspath project="${basedir}"/> |
||
51 | <gvSIG-javac
|
||
52 | classpath="${eclipseClasspath}" |
||
53 | />
|
||
54 | </target>
|
||
55 | 11193 | caballero | |
56 | 13506 | cesar | <target name="copy-data-files"> |
57 | <mkdir dir="config"/> |
||
58 | <mkdir dir="${dist}"/> |
||
59 | <mkdir dir="${dist}/images"/> |
||
60 | 13509 | caballero | |
61 | 13506 | cesar | <copy todir="${dist}"> |
62 | <fileset dir="config" includes="*"/> |
||
63 | </copy>
|
||
64 | <copy todir="${dist}/images"> |
||
65 | <fileset dir="images" includes="*"/> |
||
66 | 13509 | caballero | </copy>
|
67 | 13506 | cesar | <copy file="build.number" todir="${dist}"/> |
68 | <loadproperties srcFile="build.number"/> |
||
69 | <replace casesensitive="true" |
||
70 | file="${dist}/about.htm" |
||
71 | token="#build.number#" |
||
72 | value="${build.number}"/> |
||
73 | </target>
|
||
74 | 13509 | caballero | |
75 | 13506 | cesar | <target name="copy-libs"> |
76 | <mkdir dir="${dist}/lib"/> |
||
77 | <copy todir="${dist}/lib"> |
||
78 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
79 | </copy>
|
||
80 | </target>
|
||
81 | 2277 | vcaballero | |
82 | 13506 | cesar | <target name="create-jar" description="Creates the jar file"> |
83 | 13509 | caballero | <mkdir dir="${dist}/lib"/> |
84 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
||
85 | 13506 | cesar | </target>
|
86 | 2277 | vcaballero | |
87 | 13506 | cesar | <target name="move-to-installDir" description="Moves the build directory to andami"> |
88 | <move todir="${targetDir}"> |
||
89 | <fileset dir="${dist}" includes="**/*" /> |
||
90 | </move>
|
||
91 | </target>
|
||
92 | 13509 | caballero | |
93 | 13506 | cesar | <target name="clean" |
94 | description="clean up" > |
||
95 | <delete dir="${dist}"/> |
||
96 | <delete dir="${build}"/> |
||
97 | <delete dir="${build-test}"/> |
||
98 | </target>
|
||
99 | |||
100 | 13496 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
101 | <antcall target="generic-run-tests"> |
||
102 | <param name="TestSuite.Name" value="com.iver.gvsig.sde.AllTests"/> |
||
103 | </antcall>
|
||
104 | </target>
|
||
105 | </project> |