~gryle-devel/gryle/trunk-deleted

« back to all changes in this revision

Viewing changes to build.xml

  • Committer: Richard Leo Marsh Warburton
  • Date: 2007-01-13 23:01:11 UTC
  • mfrom: (1.1.11 gryle)
  • mto: (1.1.15 gryle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: rlmw@viglab-28-20070113230111-0k6grl9oq0n76mks
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!-- WARNING: Eclipse auto-generated file.
3
 
              Any modifications will be overwritten.
4
 
              To include a user specific buildfile here, simply create one in the same
5
 
              directory with the processing instruction <?eclipse.ant.import?>
6
 
              as the first entry and export the buildfile again. -->
7
 
<project basedir="." default="build" name="gryle">
8
 
    <property environment="env"/>
9
 
    <property name="ECLIPSE_HOME" value="../eclipse"/>
10
 
    <property name="debuglevel" value="source,lines,vars"/>
11
 
    <property name="target" value="1.5"/>
12
 
    <property name="source" value="1.5"/>
13
 
    <path id="gryle.classpath">
14
 
        <pathelement location="bin"/>
15
 
    </path>
16
 
    <target name="init">
17
 
        <mkdir dir="bin"/>
18
 
        <copy includeemptydirs="false" todir="bin">
19
 
            <fileset dir="src" excludes="**/*.launch, **/*.java"/>
20
 
        </copy>
21
 
    </target>
 
2
<project name="gryle" basedir="." default="build">
 
3
        <!--
 
4
        Copyright (C) 2007  Chris Lamb <chris@chris-lamb.co.uk>
 
5
        See the file COPYING for details.
 
6
        -->
 
7
 
 
8
        <description>
 
9
                Build Gryle.
 
10
        </description>
 
11
 
 
12
    <property name="src"      location="src/"/>
 
13
        <property name="bin"      location="bin/"/>
 
14
        <property name="dist"     location="dist/"/>
 
15
        <property name="javadoc"  location="javadoc/"/>
 
16
        <property name="classes"  location="uk/org/wuglug/gryle" />
 
17
        
 
18
        <!-- Clean -->
22
19
    <target name="clean">
23
 
        <delete dir="bin"/>
24
 
    </target>
25
 
    <target depends="clean" name="cleanall"/>
26
 
    <target depends="build-subprojects,build-project" name="build"/>
27
 
    <target name="build-subprojects"/>
28
 
    <target depends="init" name="build-project">
29
 
        <echo message="${ant.project.name}: ${ant.file}"/>
30
 
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
31
 
            <src path="src"/>
32
 
            <classpath refid="gryle.classpath"/>
 
20
                <delete dir="${bin}"/>
 
21
                <delete dir="${javadoc}"/>
 
22
                <delete dir="${dist"/>
 
23
        </target>
 
24
 
 
25
    <!-- Build -->
 
26
    <target name="build" description="Build Gryle">
 
27
                <mkdir dir="{$bin}"/>
 
28
        <javac debug="true" debuglevel="source,lines,vars" destdir="bin" source="1.5" target="1.5">
 
29
            <src path="${src}"/>
33
30
        </javac>
34
31
    </target>
35
 
    <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
36
 
    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
37
 
        <copy todir="${ant.library.dir}">
38
 
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
39
 
        </copy>
40
 
        <unzip dest="${ant.library.dir}">
41
 
            <patternset includes="jdtCompilerAdapter.jar"/>
42
 
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
43
 
        </unzip>
44
 
    </target>
45
 
    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
46
 
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
47
 
        <antcall target="build"/>
48
 
    </target>
 
32
 
 
33
        <!-- Javadoc -->
 
34
        <target name="javadoc" description="Generate documentation">
 
35
                <mkdir dir="{$javadoc}"/>
 
36
                <javadoc destdir="${javadoc">
 
37
                        <packageset dir="${src}" includes="${classes}"/>
 
38
                </javadoc>
 
39
        </target>
 
40
 
 
41
        <!-- Jars -->
 
42
        <target name="jars" depends="build" description="Creates JAR files">
 
43
                
 
44
        </target>
 
45
 
 
46
        <!-- Dist -->
 
47
        <target name="dist" depends="jars" description="Generate distribution tarballs">
 
48
                <mkdir dir="${dist}"/>
 
49
        </target>
 
50
        
 
51
        
49
52
</project>