1 | <project name="czechaddress" default="dist" basedir=".">
|
---|
2 | <property name="josm.base" value="../../core"/>
|
---|
3 | <property name="josm.jar" value="${josm.base}/dist/josm-custom.jar"/>
|
---|
4 | <property name="josm.doc.dir" value="${josm.base}/doc"/>
|
---|
5 | <property name="plugin.dist.dir" value="../../dist"/>
|
---|
6 | <property name="plugin.build.dir" value="build"/>
|
---|
7 | <property name="plugin.javadoc.dir" value="doc"/>
|
---|
8 | <property name="plugin.basepackage" value="org.openstreetmap.josm.plugins.czechaddress"/>
|
---|
9 | <property name="plugin.basepackage.dir" value="org/openstreetmap/josm/plugins/czechaddress"/>
|
---|
10 | <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
|
---|
11 | <property name="ant.build.javac.target" value="1.5"/>
|
---|
12 |
|
---|
13 | <target name="clean">
|
---|
14 | <delete dir="${plugin.build.dir}"/>
|
---|
15 | <delete dir="${plugin.jar}"/>
|
---|
16 | </target>
|
---|
17 | <target name="init">
|
---|
18 | <mkdir dir="${plugin.build.dir}"/>
|
---|
19 | <mkdir dir="${plugin.build.dir}"/>
|
---|
20 | </target>
|
---|
21 |
|
---|
22 | <target name="compile"
|
---|
23 | depends="init"
|
---|
24 | description="Compile the plugin">
|
---|
25 |
|
---|
26 | <!-- compile the plugin -->
|
---|
27 | <javac srcdir="src"
|
---|
28 | sourcepath=""
|
---|
29 | classpath="${josm.jar}"
|
---|
30 | destdir="${plugin.build.dir}"
|
---|
31 | debug="true">
|
---|
32 |
|
---|
33 | <include name="**/Status*.java"/>
|
---|
34 | <include name="**/StringUtils.java"/>
|
---|
35 | <include name="**/NotNull*.java"/>
|
---|
36 | <include name="**/addressdatabase/*.java"/>
|
---|
37 | <include name="**/proposal*/*.java"/>
|
---|
38 | <include name="**/intelligence/Reasoner*.java"/>
|
---|
39 | <include name="**/intelligence/Match.java"/>
|
---|
40 | </javac>
|
---|
41 |
|
---|
42 | </target>
|
---|
43 |
|
---|
44 |
|
---|
45 | <!-- Before running "run" target, please "ant dist" the JOSM. -->
|
---|
46 | <target name="run" depends="compile">
|
---|
47 | <java classname="org.openstreetmap.josm.plugins.czechaddress.intelligence.Reasoner">
|
---|
48 | <jvmarg value="-Xmx1024m"/>
|
---|
49 | <jvmarg value="-Xdebug"/>
|
---|
50 | <jvmarg value="-ea"/>
|
---|
51 | <classpath>
|
---|
52 | <pathelement location="${plugin.build.dir}"/>
|
---|
53 | <pathelement path="${java.class.path}"/>
|
---|
54 | </classpath>
|
---|
55 | <classpath>
|
---|
56 | <pathelement location="${josm.jar}"/>
|
---|
57 | <pathelement path="${java.class.path}"/>
|
---|
58 | </classpath>
|
---|
59 | </java>
|
---|
60 | <exec executable="xsltproc" output="log.html">
|
---|
61 | <arg value="log.xsl"/>
|
---|
62 | <arg value="log.xml"/>
|
---|
63 | </exec>
|
---|
64 | </target>
|
---|
65 |
|
---|
66 | </project>
|
---|