root / trunk / extensions / extJCRS / build.xml @ 20946
History | View | Annotate | Download (3.1 KB)
1 | 7705 | dguerrero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <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 | <property name="build" location="bin"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | <property name="plugin" value="org.gvsig.crs"/> |
||
10 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
||
11 | 20583 | dguerrero | <property name="andami" location="../_fwAndami"/> |
12 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
13 | <property name="lib" location="lib"/> |
||
14 | <property name="installBaseDir" location="${andami}"/> |
||
15 | <property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${plugin}"/> |
||
16 | <property name="installLibDir" location="${installBaseDir}/gvSIG/extensiones/${mainplugin}/lib"/> |
||
17 | 7705 | dguerrero | |
18 | 20583 | dguerrero | |
19 | 7705 | dguerrero | <target name="init"> |
20 | <!-- Create the time stamp -->
|
||
21 | <tstamp/> |
||
22 | <!-- Create the build directory structure used by compile -->
|
||
23 | <mkdir dir="${build}"/> |
||
24 | <mkdir dir="${dist}"/> |
||
25 | 9945 | dguerrero | </target>
|
26 | |||
27 | <target name="buildNumber"> |
||
28 | 7705 | dguerrero | <buildnumber/> |
29 | </target>
|
||
30 | 9945 | dguerrero | |
31 | <target name="distribution" depends="buildNumber, generate-without-source"> |
||
32 | </target>
|
||
33 | 7705 | dguerrero | |
34 | <target name="compile" |
||
35 | description="compile the source" > |
||
36 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
37 | <javac srcdir="${src}" |
||
38 | destdir="${build}" |
||
39 | classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/> |
||
40 | </target>
|
||
41 | |||
42 | <target name="generate-without-source" description="generate the distribution without the source file" > |
||
43 | <!-- Create the distribution directory -->
|
||
44 | <mkdir dir="${dist}"/> |
||
45 | 9945 | dguerrero | |
46 | <copy file="config/about.htm" todir="${dist}" overwrite="yes"/> |
||
47 | <loadproperties srcFile="build.number"/> |
||
48 | <replace casesensitive="true" |
||
49 | file="${dist}/about.htm" |
||
50 | token="#build.number#" |
||
51 | value="${build.number}"> |
||
52 | </replace>
|
||
53 | 7705 | dguerrero | |
54 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
55 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
56 | |||
57 | <copy file="config/config.xml" todir="${dist}"/> |
||
58 | 10153 | dguerrero | <copy file="build.number" todir="${dist}"/> |
59 | 7705 | dguerrero | |
60 | <copy file="${dist}/${plugin}.jar" todir="lib/"/> |
||
61 | 9945 | dguerrero | <copy todir="${dist}/images"> |
62 | <fileset dir="images/" includes="*"/> |
||
63 | </copy>
|
||
64 | 7705 | dguerrero | <copy todir="${dist}"> |
65 | <fileset dir="config" includes="text*.properties"/> |
||
66 | 11733 | jlgomez | <fileset dir="config" includes="esri.*"/> |
67 | <fileset dir="config" includes="iau2000.*"/> |
||
68 | 20325 | dguerrero | <fileset dir="config" includes="usr.*"/> |
69 | 8480 | jlgomez | </copy>
|
70 | 7705 | dguerrero | <move todir="${extension-dir}/${plugin}/"> |
71 | <fileset dir="${dist}" includes="**/**"/> |
||
72 | </move>
|
||
73 | 8548 | dguerrero | |
74 | 20583 | dguerrero | <copy todir="${installLibDir}"> |
75 | <fileset dir="${lib}" includes="**/**"/> |
||
76 | </copy>
|
||
77 | |||
78 | 8548 | dguerrero | <mkdir dir="${extension-dir}/${plugin}/data"/> |
79 | <copy todir="${extension-dir}/${plugin}/data"> |
||
80 | <fileset dir="data" includes="**/**"/> |
||
81 | </copy>
|
||
82 | |||
83 | 7705 | dguerrero | </target>
|
84 | </project>
|
||
85 |