Last change
on this file since 4468 was 4307, checked in by frederik, 17 years ago |
new version with nicer table for results; fixed bug that would close the download dialog on pressing ENTER; added wait cursor
|
File size:
1.6 KB
|
Line | |
---|
1 | <project name="namefinder" default="dist" basedir=".">
|
---|
2 | <property name="josm.prj.dir" value="../../core"/>
|
---|
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 | <mkdir dir="dist" />
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <!-- clean target -->
|
---|
13 | <target name="clean">
|
---|
14 | <delete dir="build" />
|
---|
15 | <delete dir="dist" />
|
---|
16 | </target>
|
---|
17 |
|
---|
18 | <!-- compile target -->
|
---|
19 | <target name="compile" depends="init">
|
---|
20 | <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
|
---|
21 | <classpath>
|
---|
22 | <pathelement path="${josm.prj.dir}/build"/>
|
---|
23 | <pathelement path="${josm.prj.dir}/src"/>
|
---|
24 | <fileset dir="${josm.prj.dir}/lib">
|
---|
25 | <include name="**/*.jar"/>
|
---|
26 | </fileset>
|
---|
27 | </classpath>
|
---|
28 | </javac>
|
---|
29 | </target>
|
---|
30 |
|
---|
31 | <!-- dist target - create jar file -->
|
---|
32 | <target name="dist" depends="compile">
|
---|
33 | <jar destfile="dist/${ant.project.name}.jar" basedir="${plugin.build.dir}">
|
---|
34 | <manifest>
|
---|
35 | <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" />
|
---|
36 | <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" />
|
---|
37 | <attribute name="Plugin-Version" value="0.9" />
|
---|
38 | </manifest>
|
---|
39 | </jar>
|
---|
40 | </target>
|
---|
41 |
|
---|
42 | <!-- dist target - copy jar file to plugin destination -->
|
---|
43 | <target name="install" depends="dist">
|
---|
44 | <copy file="dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
|
---|
45 | </target>
|
---|
46 |
|
---|
47 | </project>
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.