Changeset 14003 in osm for applications/editors/josm/plugins/plastic_laf
- Timestamp:
- 2009-03-08T12:02:49+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/plastic_laf
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/plastic_laf/build.xml
r12781 r14003 1 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"/> 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 3 <property name="plugin.dist.dir" value="../../dist"/> 4 <property name="plugin.build.dir" value="build"/> 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 10 6 <property name="ant.build.javac.target" value="1.5"/> 11 <target name="dist"> 7 <target name="init"> 8 <mkdir dir="${plugin.build.dir}"/> 9 </target> 10 <target name="compile" depends="init"> 12 11 <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"/>12 <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}"> 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 16 15 </javac> 17 <!-- define the version of the jar file --> 16 </target> 17 <target name="dist" depends="compile,revision"> 18 <unjar dest="${plugin.build.dir}" src="lib/looks-2.2.1.jar"/> 19 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 20 <manifest> 21 <attribute name="Author" value="Imi"/> 22 <attribute name="Plugin-Class" value="plastic_laf.Plugin"/> 23 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 24 <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel."/> 25 <attribute name="Plugin-Early" value="true"/> 26 <attribute name="Plugin-Link" value="http://www.jgoodies.com/"/> 27 <attribute name="Plugin-Mainversion" value="1465"/> 28 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 29 </manifest> 30 </jar> 31 </target> 32 <target name="revision"> 18 33 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 19 34 <env key="LANG" value="C"/> … … 23 38 </exec> 24 39 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 25 <!-- delete intermediate file -->26 40 <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 41 </target> 38 42 <target name="clean"> 39 <delete dir="${plugin.build.dir}" /> 40 <delete file="${plugin.jar}" /> 43 <delete dir="${plugin.build.dir}"/> 44 <delete file="${plugin.jar}"/> 45 </target> 46 <target name="install" depends="dist"> 47 <property environment="env"/> 48 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 49 <and> 50 <os family="windows"/> 51 </and> 52 </condition> 53 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 41 54 </target> 42 55 </project>
Note:
See TracChangeset
for help on using the changeset viewer.