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