svn-gvsig-desktop / tags / JCRS_V02_BN11 / extJCRS / build.xml @ 47840
History | View | Annotate | Download (4.37 KB)
1 | 21184 | dguerrero | <project name="extJCRS" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 7705 | dguerrero | <description>
|
3 | Instala el plugin de JCrs en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | 23500 | dguerrero | <property name="without_src" location="without_src"/> |
8 | 7705 | dguerrero | <property name="build" location="bin"/> |
9 | <property name="dist" location="dist"/> |
||
10 | <property name="plugin" value="org.gvsig.crs"/> |
||
11 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
||
12 | 21184 | dguerrero | <property name="andami-dir" location="../_fwAndami"/> |
13 | <property name="JavaSourceVersion" value="1.5"/> |
||
14 | <property name="JavaTargetVersion" value="1.5"/> |
||
15 | <property name="debug" value="on"/> |
||
16 | <property name="debuglevel" value="line, vars"/> |
||
17 | <property name="encoding" value="ISO_8859_1"/> |
||
18 | 7705 | dguerrero | |
19 | <target name="init"> |
||
20 | <!-- Create the time stamp -->
|
||
21 | <tstamp/> |
||
22 | 21184 | dguerrero | <echo>
|
23 | Compiling ${ant.project.name}...</echo>
|
||
24 | 7705 | dguerrero | <!-- Create the build directory structure used by compile -->
|
25 | <mkdir dir="${build}"/> |
||
26 | <mkdir dir="${dist}"/> |
||
27 | 9945 | dguerrero | </target>
|
28 | 23500 | dguerrero | |
29 | <target name="buildNumber"> |
||
30 | <propertyfile file="build.number" |
||
31 | comment="Build Number for ANT. Do not edit!"> |
||
32 | <entry key="build.number" default="0" type="int" operation="+" /> |
||
33 | </propertyfile>
|
||
34 | <property file="build.number" /> |
||
35 | </target>
|
||
36 | 21184 | dguerrero | |
37 | 23500 | dguerrero | <target name="distribution" depends="buildNumber, copy-data-files, generate-without-source"> |
38 | 7705 | dguerrero | </target>
|
39 | 21184 | dguerrero | |
40 | 7705 | dguerrero | <target name="compile" |
41 | description="compile the source" > |
||
42 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
43 | <javac srcdir="${src}" |
||
44 | destdir="${build}" |
||
45 | 21184 | dguerrero | source="${JavaSourceVersion}" |
46 | target="${JavaTargetVersion}" |
||
47 | debug="${debug}" |
||
48 | debuglevel="${debuglevel}" |
||
49 | encoding="${encoding}" |
||
50 | classpath="../libFMap/lib/jcrs.jar:${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../libFMap/lib/cms.jar:../_fwAndami/lib/iver-utiles.jar:../libFMap/lib/gdbms-0.8-SNAPSHOT.jar:../_fwAndami/andami.jar"/> |
||
51 | <copy todir="${build}"> |
||
52 | <fileset
|
||
53 | dir="${src}" |
||
54 | excludes="**/*.java"/> |
||
55 | </copy>
|
||
56 | |||
57 | 7705 | dguerrero | </target>
|
58 | 21184 | dguerrero | |
59 | 7705 | dguerrero | <target name="generate-without-source" description="generate the distribution without the source file" > |
60 | <!-- Create the distribution directory -->
|
||
61 | <mkdir dir="${dist}"/> |
||
62 | 21184 | dguerrero | |
63 | 9945 | dguerrero | <copy file="config/about.htm" todir="${dist}" overwrite="yes"/> |
64 | <loadproperties srcFile="build.number"/> |
||
65 | <replace casesensitive="true" |
||
66 | file="${dist}/about.htm" |
||
67 | token="#build.number#" |
||
68 | value="${build.number}"> |
||
69 | 21184 | dguerrero | </replace>
|
70 | 7705 | dguerrero | |
71 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
72 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
73 | 21184 | dguerrero | |
74 | 7705 | dguerrero | <copy file="config/config.xml" todir="${dist}"/> |
75 | 10153 | dguerrero | <copy file="build.number" todir="${dist}"/> |
76 | 21184 | dguerrero | |
77 | 7705 | dguerrero | <copy file="${dist}/${plugin}.jar" todir="lib/"/> |
78 | 9945 | dguerrero | <copy todir="${dist}/images"> |
79 | <fileset dir="images/" includes="*"/> |
||
80 | 21184 | dguerrero | </copy>
|
81 | 7705 | dguerrero | <copy todir="${dist}"> |
82 | <fileset dir="config" includes="text*.properties"/> |
||
83 | 11733 | jlgomez | <fileset dir="config" includes="esri.*"/> |
84 | <fileset dir="config" includes="iau2000.*"/> |
||
85 | 20325 | dguerrero | <fileset dir="config" includes="usr.*"/> |
86 | 8480 | jlgomez | </copy>
|
87 | 7705 | dguerrero | <move todir="${extension-dir}/${plugin}/"> |
88 | <fileset dir="${dist}" includes="**/**"/> |
||
89 | </move>
|
||
90 | 21184 | dguerrero | |
91 | 8548 | dguerrero | <mkdir dir="${extension-dir}/${plugin}/data"/> |
92 | <copy todir="${extension-dir}/${plugin}/data"> |
||
93 | <fileset dir="data" includes="**/**"/> |
||
94 | 21184 | dguerrero | </copy>
|
95 | |||
96 | 7705 | dguerrero | </target>
|
97 | 21184 | dguerrero | |
98 | 23500 | dguerrero | <target name="copy-data-files"> |
99 | <copy file="config/config.xml" todir="${without_src}"/> |
||
100 | <copy file="build.number" todir="${without_src}"/> |
||
101 | <copy file="config/about.htm" todir="${without_src}"/> |
||
102 | <loadproperties srcFile="build.number"/> |
||
103 | <replace casesensitive="true" |
||
104 | file="${without_src}/about.htm" |
||
105 | token="#build.number#" |
||
106 | value="${build.number}"/> |
||
107 | <copy todir="${without_src}"> |
||
108 | <fileset dir="config" includes="text*.properties"/> |
||
109 | </copy>
|
||
110 | <copy todir="${without_src}/images"> |
||
111 | <fileset dir="images/" includes="*"/> |
||
112 | </copy>
|
||
113 | 21184 | dguerrero | </target>
|
114 | 23500 | dguerrero | |
115 | 21184 | dguerrero | <target name="batch-build" |
116 | description="compile the sources, create the jar file" |
||
117 | depends="init,compile,generate-without-source"> |
||
118 | </target>
|
||
119 | |||
120 | <target name="clean" |
||
121 | description="cleans the build directories"> |
||
122 | <delete dir="${build}"/> |
||
123 | <delete dir="${dist}"/> |
||
124 | </target>
|
||
125 | |||
126 | 7705 | dguerrero | </project>
|
127 |