Line | |
---|
1 | <project name="namefinder" default="dist" basedir=".">
|
---|
2 | <property name="josm.prj.dir" value="../../josm"/>
|
---|
3 | <property name="josm.home.dir" value="${user.home}/.josm"/>
|
---|
4 | <property name="plugin.build.dir" value="build"/>
|
---|
5 |
|
---|
6 | <!-- init target -->
|
---|
7 | <target name="init">
|
---|
8 | <mkdir dir="build" />
|
---|
9 | </target>
|
---|
10 |
|
---|
11 | <!-- clean target -->
|
---|
12 | <target name="clean">
|
---|
13 | <delete dir="build" />
|
---|
14 | </target>
|
---|
15 |
|
---|
16 | <!-- compile target -->
|
---|
17 | <target name="compile" depends="init">
|
---|
18 | <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
|
---|
19 | <classpath>
|
---|
20 | <pathelement path="${josm.prj.dir}/build"/>
|
---|
21 | <fileset dir="${josm.prj.dir}/lib">
|
---|
22 | <include name="**/*.jar"/>
|
---|
23 | </fileset>
|
---|
24 | </classpath>
|
---|
25 | </javac>
|
---|
26 | </target>
|
---|
27 |
|
---|
28 | <!-- dist target - crate jar file -->
|
---|
29 | <target name="dist" depends="compile">
|
---|
30 | <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}">
|
---|
31 | <manifest>
|
---|
32 | <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" />
|
---|
33 | <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" />
|
---|
34 | </manifest>
|
---|
35 | </jar>
|
---|
36 | </target>
|
---|
37 |
|
---|
38 | <!-- dist target - copy jar file to plugin destination -->
|
---|
39 | <target name="install" depends="dist">
|
---|
40 | <copy file="${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
|
---|
41 | </target>
|
---|
42 |
|
---|
43 | </project>
|
---|
44 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.