1 | <project name="plastic_laf" default="dist" basedir=".">
|
---|
2 |
|
---|
3 | <!-- compilation properties -->
|
---|
4 | <property name="josm.build.dir" value="../../core"/>
|
---|
5 | <property name="josm.home.dir" value="${user.home}/.josm"/>
|
---|
6 | <property name="josm" location="../../core/dist/josm-custom.jar" />
|
---|
7 | <property name="plugin.build.dir" value="build"/>
|
---|
8 | <property name="plugin.dist.dir" value="../dist"/>
|
---|
9 | <property name="plugin.name" value="${ant.project.name}"/>
|
---|
10 | <property name="plugin.jar" value="../dist/${plugin.name}.jar"/>
|
---|
11 |
|
---|
12 | <property name="ant.build.javac.target" value="1.5"/>
|
---|
13 |
|
---|
14 | <target name="dist">
|
---|
15 | <mkdir dir="dist"></mkdir>
|
---|
16 | <unjar dest="${plugin.build.dir}" src="lib/looks-2.0.4.jar" />
|
---|
17 | <javac srcdir="src" destdir="${plugin.build.dir}">
|
---|
18 | <include name="**/*.java" />
|
---|
19 | </javac>
|
---|
20 | <!-- define the version of the jar file -->
|
---|
21 | <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
|
---|
22 | <env key="LANG" value="C"/>
|
---|
23 | <arg value="info"/>
|
---|
24 | <arg value="--xml"/>
|
---|
25 | <arg value="."/>
|
---|
26 | </exec>
|
---|
27 | <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
|
---|
28 | <!-- delete intermediate file -->
|
---|
29 | <delete file="REVISION"/>
|
---|
30 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
31 | <manifest>
|
---|
32 | <attribute name="Plugin-Class" value="plastic_laf.Plugin" />
|
---|
33 | <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" />
|
---|
34 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
35 | <attribute name="Plugin-Early" value="true" />
|
---|
36 | </manifest>
|
---|
37 | </jar>
|
---|
38 | </target>
|
---|
39 |
|
---|
40 | <target name="clean">
|
---|
41 | <delete dir="${plugin.build.dir}" />
|
---|
42 | <delete file="${plugin.jar}" />
|
---|
43 | </target>
|
---|
44 |
|
---|
45 | </project>
|
---|