<project name="plastic_laf" default="dist" basedir=".">

  <!-- compilation properties -->
  <property name="josm.build.dir"	value="../../core"/>
  <property name="josm.home.dir"	value="${user.home}/.josm"/>
  <property name="josm"			location="../../core/dist/josm-custom.jar" />
  <property name="plugin.build.dir"	value="build"/>
  <property name="plugin.dist.dir"	value="../dist"/>
  <property name="plugin.name"		value="${ant.project.name}"/>
  <property name="plugin.jar"		value="../dist/${plugin.name}.jar"/>

  <property name="ant.build.javac.target" value="1.5"/>

  <target name="dist">
    <mkdir dir="dist"></mkdir>
    <unjar dest="${plugin.build.dir}" src="lib/looks-2.0.4.jar" />
    <javac srcdir="src" destdir="${plugin.build.dir}">
      <include name="**/*.java" />
    </javac>
    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
      <manifest>
	<attribute name="Plugin-Class" value="plastic_laf.Plugin" />
	<attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" />
	<attribute name="Plugin-Early" value="true" />
      </manifest>
    </jar>
  </target>

  <target name="clean">
    <delete dir="${plugin.build.dir}" />
    <delete file="${plugin.jar}" />
  </target>

</project>
