svn-gvsig-desktop / tags / v1_12_0_Build_1412 / extensions / extDerivedGeometries / build.xml @ 45677
History | View | Annotate | Download (4.84 KB)
1 | 28059 | jmvivo | <project name="extDerivedGeometries" default="batch-build" basedir="."> |
---|---|---|---|
2 | |||
3 | 27865 | ppiqueras | <description>
|
4 | Installs the plugin extDerivedGeometries in gvSIG. |
||
5 | </description>
|
||
6 | |||
7 | <!-- set global properties for this build -->
|
||
8 | <property name="src" location="src"/> |
||
9 | <property name="build" location="bin"/> |
||
10 | <property name="dist" location="dist"/> |
||
11 | <property name="lib" location="lib"/> |
||
12 | <property name="plugin" value="es.iver.derivedGeom"/> |
||
13 | <property name="andami-lib" value="../_fwAndami/lib"/> |
||
14 | <property name="andami" value="../_fwAndami/"/> |
||
15 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
||
16 | <property name="validation-dir" location="../_fwAndami/lib"/> |
||
17 | 28059 | jmvivo | <property name="gvSIGlib-dir" location="${extension-dir}/com.iver.cit.gvsig/lib"/> |
18 | <property name="model-dir" location="../_fwAndami/gvSIG/extensiones/"/> |
||
19 | 27865 | ppiqueras | <property name="img-dir" location="../_fwAndami/src/images"/> |
20 | <property name="theme-dir" location="../_fwAndami/theme"/> |
||
21 | <property name="gvSIG-dir" location="${extension-dir}/com.iver.cit.gvsig/"/> |
||
22 | <property name="jarName" value="es.iver.derivedGeom.jar"/> |
||
23 | <import file="../binaries/ant/utilities.xml"/> |
||
24 | 28059 | jmvivo | |
25 | 27865 | ppiqueras | <target name="init"> |
26 | <!-- Create the time stamp -->
|
||
27 | <tstamp/> |
||
28 | <!-- Create the build directory structure used by compile -->
|
||
29 | <mkdir dir="${build}"/> |
||
30 | <mkdir dir="${dist}"/> |
||
31 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
32 | <!-- <buildnumber/> -->
|
||
33 | </target>
|
||
34 | 28059 | jmvivo | |
35 | <target name="batch-build" depends="compile,generate-without-source,generate-validation-without-source, generate-model-without-source"> |
||
36 | 27865 | ppiqueras | </target>
|
37 | |||
38 | 28059 | jmvivo | <target name="clean" |
39 | description="cleans the build directories"> |
||
40 | <delete dir="${build}" failonerror="no"/> |
||
41 | <delete dir="${dist}" failonerror="no"/> |
||
42 | </target>
|
||
43 | |||
44 | 27865 | ppiqueras | <target name="buildNumber"> |
45 | 28059 | jmvivo | <propertyfile
|
46 | 27865 | ppiqueras | file="build.number" |
47 | comment="Build Number for ANT. Do not edit!"> |
||
48 | 28059 | jmvivo | <entry
|
49 | key="build.number" |
||
50 | default="0" |
||
51 | 27865 | ppiqueras | type="int" operation="+"/> |
52 | </propertyfile>
|
||
53 | <property file="build.number"/> |
||
54 | </target>
|
||
55 | |||
56 | |||
57 | 28059 | jmvivo | <target name="distribution" depends="buildNumber,batch-build"> |
58 | 27865 | ppiqueras | </target>
|
59 | |||
60 | 28059 | jmvivo | |
61 | 34510 | fdiaz | <target name="generate-without-source" description="generate the distribution without the source file" depends="make-package-info"> |
62 | 27865 | ppiqueras | <!-- Create the distribution directory -->
|
63 | <mkdir dir="${dist}"/> |
||
64 | |||
65 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
66 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
67 | |||
68 | <copy todir="${dist}"> |
||
69 | <fileset dir="config/" includes="*"/> |
||
70 | </copy>
|
||
71 | 28059 | jmvivo | |
72 | 27865 | ppiqueras | <mkdir dir="${dist}/images"/> |
73 | <copy todir="${dist}/images"> |
||
74 | <fileset dir="images" includes="*"/> |
||
75 | </copy>
|
||
76 | <!-- <copy todir="${dist}">
|
||
77 | <fileset dir="lib" includes="*"/>
|
||
78 | </copy> -->
|
||
79 | 28059 | jmvivo | |
80 | 27865 | ppiqueras | <loadproperties srcFile="build.number"/> |
81 | <replace casesensitive="true" |
||
82 | file="${dist}/about.htm" |
||
83 | token="#build.number#" |
||
84 | value="${build.number}"/> |
||
85 | <copy todir="${dist}"> |
||
86 | <fileset dir="config" includes="text*.properties"/> |
||
87 | </copy>
|
||
88 | 28059 | jmvivo | |
89 | 27865 | ppiqueras | <copy file="build.number" todir="${dist}"/> |
90 | 34510 | fdiaz | <copy file="package.info" todir="${dist}"/> |
91 | 27865 | ppiqueras | |
92 | <!-- <move file="${dist}/${plugin}.jar" todir="${gvSIGlib-dir}" />
|
||
93 | <move todir="${extension-dir}/${plugin}/">
|
||
94 | <fileset dir="${dist}" includes="**/**" />
|
||
95 | </move> -->
|
||
96 | </target>
|
||
97 | 28059 | jmvivo | |
98 | 27865 | ppiqueras | <target name="compile" description="compile the source" > |
99 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
100 | <mkdir dir="${build}" /> |
||
101 | <loadEclipseClasspath project="${basedir}"/> |
||
102 | <gvSIG-javac
|
||
103 | classpath="${eclipseClasspath}" |
||
104 | />
|
||
105 | |||
106 | <!--<javac srcdir="${src}"
|
||
107 | destdir="${build}"
|
||
108 | source="${JavaSourceVersion}"
|
||
109 | target="${JavaTargetVersion}"
|
||
110 | debug="${debug}"
|
||
111 | debuglevel="${debuglevel}">
|
||
112 | <classpath refid="libFMap.compile-classpath"/>
|
||
113 | </javac>-->
|
||
114 | <!-- copy data files -->
|
||
115 | <copy todir="${build}"> |
||
116 | <fileset
|
||
117 | dir="src" |
||
118 | excludes="**/*.java"/> |
||
119 | </copy>
|
||
120 | </target>
|
||
121 | 28059 | jmvivo | |
122 | 34510 | fdiaz | <target name="generate-validation-without-source" description="generate the validation module distribution without the source file"> |
123 | 27865 | ppiqueras | <!-- Create the distribution directory -->
|
124 | <mkdir dir="${dist}"/> |
||
125 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
126 | |||
127 | <!-- <copy todir="${build}/images">
|
||
128 | <fileset dir="images/" includes="*"/>
|
||
129 | </copy> -->
|
||
130 | <move todir="${extension-dir}/${plugin}/"> |
||
131 | <fileset dir="${dist}" includes="**/**"/> |
||
132 | </move>
|
||
133 | |||
134 | 28059 | jmvivo | </target>
|
135 | |||
136 | 34510 | fdiaz | <target name="generate-model-without-source" description="generate the model module distribution without the source file"> |
137 | 27865 | ppiqueras | <!-- Create the distribution directory -->
|
138 | <mkdir dir="${dist}"/> |
||
139 | 28059 | jmvivo | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
140 | 27865 | ppiqueras | <move todir="${extension-dir}/${plugin}/"> |
141 | <fileset dir="${dist}" includes="**/**"/> |
||
142 | </move>
|
||
143 | 28059 | jmvivo | |
144 | 27865 | ppiqueras | </target>
|
145 | </project> |