root / tags / v1_9_Build_1241 / extensions / extQuickInfo / build.xml @ 37632
History | View | Annotate | Download (4.86 KB)
1 | 28055 | jmvivo | <project name="extQuickInfo" default="batch-build" basedir="."> |
---|---|---|---|
2 | |||
3 | 27817 | ppiqueras | <description>
|
4 | Installs the plugin extQuickInfo 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="org.gvsig.quickInfo"/> |
||
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 | 28055 | jmvivo | <property name="gvSIGlib-dir" location="${extension-dir}/com.iver.cit.gvsig/lib"/> |
18 | <property name="model-dir" location="../_fwAndami/gvSIG/extensiones/"/> |
||
19 | 27817 | 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="org.gvsig.quickInfo.jar"/> |
||
23 | <import file="../binaries/ant/utilities.xml"/> |
||
24 | 28055 | jmvivo | |
25 | 27817 | 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 | 28055 | jmvivo | |
35 | <target name="batch-build" depends="compile,generate-without-source,generate-validation-without-source, generate-model-without-source"> |
||
36 | 27817 | ppiqueras | </target>
|
37 | |||
38 | <target name="buildNumber"> |
||
39 | 28055 | jmvivo | <propertyfile
|
40 | 27817 | ppiqueras | file="build.number" |
41 | comment="Build Number for ANT. Do not edit!"> |
||
42 | 28055 | jmvivo | <entry
|
43 | key="build.number" |
||
44 | default="0" |
||
45 | 27817 | ppiqueras | type="int" operation="+"/> |
46 | </propertyfile>
|
||
47 | <property file="build.number"/> |
||
48 | </target>
|
||
49 | |||
50 | |||
51 | 28055 | jmvivo | <target name="distribution" depends="buildNumber,batch-build"> |
52 | 27817 | ppiqueras | </target>
|
53 | |||
54 | 28055 | jmvivo | |
55 | <target name="clean" |
||
56 | description="cleans the build directories"> |
||
57 | <delete dir="${build}" failonerror="no"/> |
||
58 | <delete dir="${dist}" failonerror="no"/> |
||
59 | </target>
|
||
60 | |||
61 | |||
62 | 27817 | ppiqueras | <target name="generate-without-source" description="generate the distribution without the source file" > |
63 | <!-- Create the distribution directory -->
|
||
64 | <mkdir dir="${dist}"/> |
||
65 | |||
66 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
67 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
68 | |||
69 | <copy todir="${dist}"> |
||
70 | <fileset dir="config/" includes="*"/> |
||
71 | </copy>
|
||
72 | 28055 | jmvivo | |
73 | 27817 | ppiqueras | <mkdir dir="${dist}/images"/> |
74 | <copy todir="${dist}/images"> |
||
75 | <fileset dir="images" includes="*"/> |
||
76 | </copy>
|
||
77 | <mkdir dir="${dist}/xsl"/> |
||
78 | <copy todir="${dist}/xsl"> |
||
79 | <fileset dir="xsl" includes="*"/> |
||
80 | </copy>
|
||
81 | <!-- <copy todir="${dist}">
|
||
82 | <fileset dir="lib" includes="*"/>
|
||
83 | </copy> -->
|
||
84 | 28055 | jmvivo | |
85 | 27817 | ppiqueras | <loadproperties srcFile="build.number"/> |
86 | <replace casesensitive="true" |
||
87 | file="${dist}/about.htm" |
||
88 | token="#build.number#" |
||
89 | value="${build.number}"/> |
||
90 | <copy todir="${dist}"> |
||
91 | <fileset dir="config" includes="text*.properties"/> |
||
92 | </copy>
|
||
93 | 28055 | jmvivo | |
94 | 27817 | ppiqueras | <copy file="build.number" todir="${dist}"/> |
95 | |||
96 | <!-- <move file="${dist}/${plugin}.jar" todir="${gvSIGlib-dir}" />
|
||
97 | <move todir="${extension-dir}/${plugin}/">
|
||
98 | <fileset dir="${dist}" includes="**/**" />
|
||
99 | </move> -->
|
||
100 | </target>
|
||
101 | 28055 | jmvivo | |
102 | 27817 | ppiqueras | <target name="compile" description="compile the source" > |
103 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
104 | <mkdir dir="${build}" /> |
||
105 | <loadEclipseClasspath project="${basedir}"/> |
||
106 | <gvSIG-javac
|
||
107 | classpath="${eclipseClasspath}" |
||
108 | />
|
||
109 | |||
110 | <!--<javac srcdir="${src}"
|
||
111 | destdir="${build}"
|
||
112 | source="${JavaSourceVersion}"
|
||
113 | target="${JavaTargetVersion}"
|
||
114 | debug="${debug}"
|
||
115 | debuglevel="${debuglevel}">
|
||
116 | <classpath refid="libFMap.compile-classpath"/>
|
||
117 | </javac>-->
|
||
118 | <!-- copy data files -->
|
||
119 | <copy todir="${build}"> |
||
120 | <fileset
|
||
121 | dir="src" |
||
122 | excludes="**/*.java"/> |
||
123 | </copy>
|
||
124 | </target>
|
||
125 | 28055 | jmvivo | |
126 | 27817 | ppiqueras | <target name="generate-validation-without-source" description="generate the validation module distribution without the source file" > |
127 | <!-- Create the distribution directory -->
|
||
128 | <mkdir dir="${dist}"/> |
||
129 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
130 | |||
131 | <!-- <copy todir="${build}/images">
|
||
132 | <fileset dir="images/" includes="*"/>
|
||
133 | </copy> -->
|
||
134 | <move todir="${extension-dir}/${plugin}/"> |
||
135 | <fileset dir="${dist}" includes="**/**"/> |
||
136 | </move>
|
||
137 | |||
138 | 28055 | jmvivo | </target>
|
139 | |||
140 | 27817 | ppiqueras | <target name="generate-model-without-source" description="generate the model module distribution without the source file" > |
141 | <!-- Create the distribution directory -->
|
||
142 | <mkdir dir="${dist}"/> |
||
143 | 28055 | jmvivo | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
144 | 27817 | ppiqueras | <move todir="${extension-dir}/${plugin}/"> |
145 | <fileset dir="${dist}" includes="**/**"/> |
||
146 | </move>
|
||
147 | 28055 | jmvivo | |
148 | 27817 | ppiqueras | </target>
|
149 | </project> |