source: trunk/t3d/build.xml @ 8

Last change on this file since 8 was 7, checked in by phdmakk, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 2.3 KB
Line 
1<?xml version="1.0"?>
2<project name="test" default="compile" basedir=".">
3
4    <property name="src" value="src"/>
5    <property name="bin" value="bin"/>
6    <property name="lib" value="lib"/>
7    <property name="dist" value="dist"/>
8    <property name="antlib" value="antlib"/>
9    <property name="nsis" value="nsis"/>
10    <property name="cp" value="${lib}/fop.jar:${lib}/commons-lang-2.4.jar:${lib}/com.yourkit.javaprofiler.controller_7.0.4.jar:${lib}/de.ugoe.cs.swe.trex.antlr_2.7.6.jar:${lib}/org.eclipse.core.resources_3.4.0.v20080604-1400.jar:${lib}/org.eclipse.core.runtime_3.4.0.v20080512.jar:${lib}/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar:${lib}/org.eclipse.osgi_3.4.0.v20080605-1900.jar:${lib}/stringtemplate.jar:${lib}/xstream-1.3.1.jar:${lib}/xpp3_min-1.1.4c.jar:${lib}/commons-cli-1.2.jar:${lib}/org.etsi.common.jar:${lib}/de.ugoe.cs.swe.trex.core_0.6.0.200810271154.jar"/>
11
12    <taskdef name="nsis" classname="net.sf.nsisant.Task">
13        <classpath location="${antlib}/nsisant-1.2.jar"/>
14    </taskdef>
15
16       
17        <target name="init">
18        <mkdir dir="${bin}"/>
19    </target>
20
21        <target name="compile" depends="init">
22        <javac srcdir="${src}" destdir="${bin}" classpath="${cp}"/>
23    </target>
24
25    <target name="clean" description="Removes previous build">
26      <delete includeEmptyDirs="true">
27        <fileset dir="${bin}"/>
28      </delete>
29    </target>
30
31        <target name="make-dist" depends="compile" description="Creates an T3D distribution directory">
32        <echo>Building T3D Distribution in ${dist}...</echo>
33        <delete includeEmptyDirs="true">
34            <fileset dir="${dist}"/>
35        </delete>
36        <jar destfile="${lib}/t3d.jar" basedir="${bin}/"/>
37        <mkdir dir="${dist}"/>
38        <mkdir dir="${dist}/lib"/>
39                <copy file="t3d" tofile="${dist}/t3d"/>
40                <copy file="t3d.bat" tofile="${dist}/t3d.bat"/>
41        <copy todir="${dist}/lib">
42                <fileset dir="${lib}"/>
43        </copy>
44    </target>
45       
46    <target name="nsis" depends="make-dist" description="Creates an NSIS Installer from the dist directory">
47        <nsis script="${nsis}/t3d.nsi" verbosity="4" out="${nsis}/build.log" noconfig="yes">
48            <define name="VERSION" value="2.1"/>
49            <scriptcmd cmd="AutoCloseWindow true"/>
50        </nsis>
51    </target>
52       
53       
54       
55</project>
Note: See TracBrowser for help on using the repository browser.