<?xml version="1.0"?>
<!-- ant build file for Freenet -->
<project name="SiteToolPlugin" default="dist" basedir=".">
<property name="freenet-cvs-snapshot.location" location="../Freenet 0.7/lib/freenet-cvs-snapshot.jar" />
<property name="freenet-ext.location" location="../Freenet 0.7/lib/freenet-ext.jar" />
<property name="source-version" value="1.4" />
<property name="target-version" value="1.4" />
<property name="build" location="build/" />
<property name="dist" location="dist/" />
<target name="mkdir">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
<echo message="Using ${freenet-cvs-snapshot.location} as freenet-cvs-snapshot.jar" />
<echo message="Using ${freenet-ext.location} as freenet-ext.jar" />
</target>
<!-- ================================================== -->
<target name="compile" depends="mkdir">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<!-- FIXME: remove the debug and replace with optimize -->
<javac srcdir="src" destdir="${build}" debug="on" optimize="on" source="${source-version}" target="${target-version}">
<classpath>
<pathelement location="${freenet-ext.location}" />
<pathelement location="${freenet-cvs-snapshot.location}" />
<!-- pathelement location="./bc-lib/bcprov-jdk14-138.jar"/ -->
<!-- pathelement location="./bc-lib/bcpg-jdk14-138.jar"/ -->
</classpath>
<include name="**/*.java" />
</javac>
</target>
<!-- ================================================== -->
<target name="dist" depends="compile" description="generate the distribution">
<jar jarfile="${dist}/SiteToolPlugin.jar">
<fileset dir="${build}" />
<fileset dir="src" />
<manifest>
<attribute name="Plugin-Main-Class" value="plugins.SiteToolPlugin.SiteToolPlugin" />
</manifest>
</jar>
</target>
<!-- ================================================== -->
<target name="clean" description="Delete class files and docs dir.">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>
Welcome to the bulix.org / pastebin. Please don't use this pastebin for illegal purposes, defamation or kitten-squashing.
This pastebin is written using PHP and MySQL and relies on Alex Gorbatchev's syntax hhighlighter (JavaScript based). To avoid spam, you will be required to complete a small mathematical challenge when adding a new paste.
New! Try the pastebin command-line tool: paste.py (requires Python and python-beautifulsoup).
Powered by the Bulix.org Code Pastebin, by Maxime Petazzoni. View pastebin statistics.