annotate build.xml @ 214:0770d8c9999b

* website/download-de.htm4, website/index.htm4: repaired broken links found by Hans
author Stephan Holl <stephan.holl@intevation.de>
date Fri, 22 Jul 2011 14:11:06 +0200
parents 8ced5ff9113d
children 6b80e46b8f38
rev   line source
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
1 <?xml version="1.0"?>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
2 <!DOCTYPE project[
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
3 <!ENTITY properties SYSTEM "properties.xml">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
4 ]>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
5 <!-- :mode=ant -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
6
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
7 <project name="MXD-Konverter" default="all" basedir=".">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
8 <!-- import external XML fragments -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
9 &properties;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
10 <!-- import sample properties -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
11 <!-- TODO: edit sample.properties file before importing -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
12 <property file="sample.properties"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
13 <path id="compile.classpath">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
14 <pathelement location="${arcobjects.jar}"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
15 <fileset dir="${libs.dir}">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
16 <include name="**/*.jar"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
17 </fileset>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
18 </path>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
19 <path id="run.classpath">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
20 <path refid="compile.classpath"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
21 <pathelement location="${class.dir}"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
22 <pathelement location="${src.dir}"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
23 </path>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
24
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
25 <!-- ========================================= -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
26 <!-- private targets -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
27 <!-- ========================================= -->
178
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
28 <target name="revision">
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
29 <property name="current" value="parent"/>
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
30 <exec executable="hg" outputproperty="hash">
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
31 <arg line="${current} --template '{node|short}'"/>
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
32 </exec>
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
33 </target>
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
34
193
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
35 <target name="init">
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
36 <!-- create the time stamp -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
37 <tstamp/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
38 <!-- create the build directory structure used by compile -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
39 <mkdir dir="${build.dir}"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
40 <mkdir dir="${class.dir}"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
41 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
42
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
43 <target name="validate-runtime" depends="init">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
44 <condition property="runtimeAvailable">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
45 <isset property="runtime.home"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
46 </condition>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
47 <fail message="No runtime installed. You need to install ArcGIS Engine, Desktop or Server to run this sample." unless="runtimeAvailable"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
48 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
49
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
50 <target name="compile" depends="validate-runtime">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
51 <!-- javac resolver needed to run inside of Websphere Studio -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
52 <available classname="org.eclipse.core.launcher.Main" property="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" classpath="${java.class.path}" />
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
53 <!-- compile the java code from ${src.dir} into ${class.dir} -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
54 <javac srcdir="${src.dir}" destdir="${class.dir}" debug="on">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
55 <classpath refid="compile.classpath"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
56 </javac>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
57 <copy todir="${class.dir}">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
58 <fileset dir="${src.dir}" includes="**/icons/*" />
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
59 </copy>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
60 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
61
193
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
62 <target name="jar" depends="compile,revision">
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
63 <mkdir dir="${dist.dir}" />
178
d10d5f560b1a Renamed executable jar file.
raimund renkert <raimund.renkert@intevation.de>
parents: 174
diff changeset
64 <jar jarfile="${dist.dir}/mxd2map-${hash}.jar" compress="true" basedir="${class.dir}">
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
65 <manifest>
55
f0c02ff120d6 Read filenames from properties file or commandline arguments.
Raimund Renkert <rrenkert@intevation.de>
parents: 35
diff changeset
66 <attribute name="Main-Class" value="de.intevation.mxd.Converter"/>
174
707f13cfba74 Improved the commandline arguments and save the mapfile in the correct directory.
raimund.renkert@intevation.de
parents: 55
diff changeset
67 <attribute name="Class-Path" value="lib/log4j-1.2.16.jar lib/mapscript.jar lib/arcobjects.jar lib/jargs.jar"/>
55
f0c02ff120d6 Read filenames from properties file or commandline arguments.
Raimund Renkert <rrenkert@intevation.de>
parents: 35
diff changeset
68 </manifest>
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
69 </jar>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
70 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
71
193
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
72 <target name="jar-norevision" depends="compile">
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
73 <mkdir dir="${dist.dir}" />
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
74 <jar jarfile="${dist.dir}/mxd2map.jar" compress="true" basedir="${class.dir}">
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
75 <manifest>
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
76 <attribute name="Main-Class" value="de.intevation.mxd.Converter"/>
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
77 <attribute name="Class-Path" value="lib/log4j-1.2.16.jar lib/mapscript.jar lib/jargs.jar"/>
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
78 </manifest>
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
79 </jar>
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
80 </target>
8ced5ff9113d Added target "jar-norevision" to create a jar file without the revision hash.
raimund renkert <raimund.renkert@intevation.de>
parents: 178
diff changeset
81
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
82 <target name="usage">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
83 <echo message="Execute 'ant -projecthelp' for the build file help"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
84 <echo message="Execute 'ant -help' for Ant help"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
85 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
86
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
87 <target name="execute" depends="compile">
35
7873682a1a11 Changed classname for converter entry point.
Raimund Renkert <rrenkert@intevation.de>
parents: 28
diff changeset
88 <java classname="de.intevation.mxd.Converter" failonerror="true" fork="true">
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
89 <jvmarg value="-Xss2m"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
90 <classpath refid="run.classpath"/>
28
0e71a1f71ec0 Added parameter for MXD filename.
Raimund Renkert <rrenkert@intevation.de>
parents: 25
diff changeset
91 <sysproperty key="mxd.file" value="${MXDFILE}"/>
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
92 </java>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
93 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
94
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
95 <!-- ========================================= -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
96 <!-- public targets -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
97 <!-- ========================================= -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
98
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
99 <target name="all" depends="compile" description="build everything">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
100 <echo message="application built"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
101 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
102
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
103 <target name="clean" description="clean all build products">
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
104 <!-- delete the ${build} directory trees -->
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
105 <delete dir="${build.dir}"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
106 <echo message="build directory gone!"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
107 </target>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
108
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
109 <target name="help" depends="usage" description="usage" />
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
110 <target name="dist" depends="jar" description="create distributable products" />
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
111 <target name="run-sample" depends="execute" description="execute the sample with args set in sample.properties"/>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
112 </project>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)