~gryle-devel/gryle/trunk-deleted

« back to all changes in this revision

Viewing changes to build.xml

  • Committer: Chris Lamb
  • Date: 2007-01-13 22:34:56 UTC
  • mto: (1.2.13 gryle)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: csueaj@viglab-29-20070113223456-b0ewe5t92vi438s4
First stab at build.xml

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" value="src"/>
 
13
        <property name="bin" location="bin"/>
 
14
        <property name="dist" location="dist"/>
 
15
        <property name="javadoc" location="javadoc"/>
 
16
        
 
17
        <!-- Clean -->
22
18
    <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"/>
 
19
                <delete dir="${bin}"/>
 
20
                <delete dir="${javadoc}"/>
 
21
                <delete dir="${dist"/>
 
22
        </target>
 
23
 
 
24
    <!-- Build -->
 
25
    <target name="build" description="Build Gryle">
 
26
        <javac debug="true" debuglevel="source,lines,vars" destdir="bin" source="1.5" target="1.5">
 
27
            <src path="${src}"/>
33
28
        </javac>
34
29
    </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>
 
30
 
 
31
        <!-- Javadoc -->
 
32
        <target name="javadoc" description="Generate documentation">
 
33
                <mkdir dir="{$javadoc}"/>
 
34
        </target>
 
35
 
 
36
        <!-- Dist -->
 
37
        <target name="dist" description="Generate distribution tarballs">
 
38
                <mkdir dir="${dist}"/>
 
39
        </target>
 
40
        
 
41
        
49
42
</project>