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