Commit e58b90ae authored by petter's avatar petter
Browse files

repository cleanup

git-svn-id: 0463f305-d864-43cb-8a47-61cf597d4139
parent 3a7aaff2
<project name="TTT" default ="all" basedir=".">
<property name="java" location="java" />
<property name="lib" location="lib" />
<property name="classes" location="bin" />
<property name="dist" location="dist"/>
<property name="etc" location="etc" />
<property environment="env" />
<taskdef name="nsis" classname="net.sf.nsisant.Task">
<classpath location="${lib}/nsisant-1.2.jar"/>
<path id="sources">
<fileset dir="${src}">
<include name="**/**.java" />
<path id="libraries">
<pathelement location="${classes}" />
<pathelement location="${lib}" />
<fileset dir="${lib}">
<include name="**/*.jar" />
<include name="**/*.zip" />
<!-- here, we include all necessary libraries -->
<!--fileset dir="${plugins}">
<include name="**/*.jar" />
<pathelement path="${java.class.path}" />
<!-- initialize the workspace -->
<target name="init">
<mkdir dir="${classes}" />
<mkdir dir="${dist}" />
<!-- deletes all build-related directories -->
<target name="clean">
<fileset dir="." defaultexcludes="no" includes="**/*~"/>
<fileset dir="." defaultexcludes="no" includes="**/#*#"/>
<delete dir="${classes}" />
<delete dir="${dist}" />
<delete dir="${etc}" />
<!-- Compiles the .java files to the classes directory -->
<target name="classes" depends="init">
<depend srcdir="${java}" destdir="${classes}" cache="${etc}" />
<javac srcdir="${java}" destdir="${classes}" verbose="off" listfiles="off"
source="6" debug="on" encoding="Cp1252" >
<classpath refid="libraries"/>
<copy todir="${classes}/ttt/resources"><fileset dir="${java}/ttt/resources"></fileset></copy>
<!-- Packs the classes into single .jar files -->
<target name="pack" depends="classes">
<jar jarfile="${dist}/ttt.jar" basedir="${classes}">
<fileset dir="${classes}/ttt/resources"/>
<attribute name="Main-Class" value="ttt/TTT" />
<attribute name="Class-Path" value="itext-1.4.8.jar jsch-0.1.32-patched.jar swing-layout-1.0.2.jar jmf-2.1.1e.jar mp3plugin.jar" />
<copy todir="${dist}"><fileset dir="${lib}"></fileset></copy>
<zip destfile="./" basedir="${dist}" update="true"/>
<target name="installer" depends="pack">
<nsis nocd="on" verbosity="2" script="nsis/ttt.nsi"/>
<!-- build the whole project -->
<target name="all" depends="pack" />
<target name="run" depends="pack">
<java jar="${dist}/ttt.jar" fork="true">
<assertions><disable /></assertions>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment