diff options
author | kbr <[email protected]> | 2006-01-10 11:07:39 +0000 |
---|---|---|
committer | kbr <[email protected]> | 2006-01-10 11:07:39 +0000 |
commit | dd335a25dbe85ceaf7071f6635f7f207bef378f5 (patch) | |
tree | c57f82d04d1fe3fc32052d0ffafd0b551df972c5 /make/build.xml | |
parent | e997ee44ddfb774697eb459f9538e3fb68af86e5 (diff) |
Merged gluegen-branch-1-0 on to the main JOAL trunk. JOAL is now built
using GlueGen and currently requires a built JOGL workspace as a
sibling workspace of the JOAL workspace.
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/svn-server-sync-demos/joal-demos/trunk@47 235fdd13-0e8c-4fed-b5ee-0a390d04b286
Diffstat (limited to 'make/build.xml')
-rwxr-xr-x | make/build.xml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/make/build.xml b/make/build.xml new file mode 100755 index 0000000..38b95c8 --- /dev/null +++ b/make/build.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + - Ant build for the JOAL demos. This build has been tested with ANT 1.5.3. + - + - In order for this build to succeed the resulting jar files from this build + - (joal-demos.jar) must not be on the CLASSPATH. + - + - This build requires that the joal project has been checked out into a sibling + - directory to the joal-demos top-level directory and that the joal.jar has been + - built into its build directory. + --> +<project name="JOAL.demos" default="all"> + <!-- + - Make sure that joal-demos.jar is not on the CLASSPATH; this can + - cause builds to fail since if this Java process has the jar file + - open we can not overwrite it. + --> + <target name="test.for.joal.demos.jar"> + <available property="joal.demos.jar.on.class.path" classname="demos.devmaster.lesson1.SingleStaticSource" /> + </target> + <target name="java.class.path.validate" depends="test.for.joal.demos.jar" if="joal.demos.jar.on.class.path"> + <fail> + + ****************************************************************** + ** Your CLASSPATH environment variable appears to be set (some ** + ** JOAL demos' classes are currently visible to the build.) ** + ** This can cause the build to fail. Please unset your ** + ** CLASSPATH variable and restart the build. ** + ****************************************************************** + </fail> + </target> + + <target name="init" depends="java.class.path.validate"> + <property name="joal.jar" value="../../joal/build/joal.jar" /> + <property name="classes" value="../build/classes" /> + <property name="src" value="../src" /> + <property name="joal.demos.jar" value="../build/joal-demos.jar" /> + </target> + + <target name="all" depends="init"> + <mkdir dir="${classes}" /> + <path id="joal.classpath"> + <pathelement path="${classpath}" /> + <pathelement location="${joal.jar}" /> + </path> + <javac destdir="${classes}" source="1.4" debug="true" debuglevel="source,lines"> + <src path="${src}" /> + <classpath refid="joal.classpath" /> + </javac> + <jar destfile="${joal.demos.jar}"> + <fileset dir="${classes}" /> + <fileset dir="${src}/java"> + <include name="demos/data/**" /> + </fileset> + </jar> + </target> + + <target name="clean" depends="init"> + <delete includeEmptyDirs="true" quiet="true"> + <fileset dir="../build" /> + </delete> + </target> + </project> |