diff options
author | Kenneth Russel <[email protected]> | 2003-07-14 05:34:51 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-07-14 05:34:51 +0000 |
commit | 32350278dd07c95bec7e8adcf19ca1601dd6c6b4 (patch) | |
tree | 1e33a3c50e9c5173a2f8b08270e0cb4a1b692192 /make/validate-properties.xml | |
parent | 4f936be964c9e8613a5e43e1d88490ff7f550ec9 (diff) |
Added Ant build support, contributed by Rob Grzywinski and Artur
Biesiadowski. Modified their original build.xml to understand
dependencies between build phases (to avoid full rebuilds each time)
and to invoke the C compiler without requiring an external Makefile.
At this point the old Makefile/Makefile2 pair is obsolete and will be
deleted shortly, as soon as the Ant build has been tested on Linux and
Mac OS X. Additionally, Cygwin is no longer needed for the build; the
documentation will be updated to reflect this. Refactored some of the
stub_includes files to be common between platforms, yielding a build
process cleanup. Fixed bugs in Javadocs.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@19 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/validate-properties.xml')
-rw-r--r-- | make/validate-properties.xml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/make/validate-properties.xml b/make/validate-properties.xml new file mode 100644 index 000000000..e5ed6889c --- /dev/null +++ b/make/validate-properties.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + - A validator for all of the user-defined properties. It will be called + - from build.xml in the "init" task. + --> +<project name="Configuration validator" default="validate"> + + <!-- ================================================================== --> + <!-- + - Ensure that "antlr.jar" is set. + --> + <target name="antlr.jar.validate" unless="antlr.jar"> + <fail> + + ************************************************************** + ** The property "antlr.jar" was not set in host.properties. ** + ** Please set "antlr.jar" to the full path of the ANTLR jar ** + ** including the jar itself. ** + ************************************************************** + </fail> + </target> + + <!-- + - Ensure that "java.home.dir" is set. + - NOTE: "java.home" is an internal property for ANT that is not + - typically set to what the build needs it to be. + --> + <target name="java.home.dir.validate" unless="java.home.dir"> + <fail> + + ****************************************************************** + ** The property "java.home.dir" was not set in host.properties. ** + ** Please set "java.home.dir" to your JAVA_HOME directory. ** + ****************************************************************** + </fail> + </target> + + <!-- + - Make sure that jogl.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.jogl.jar"> + <available property="jogl.jar.on.class.path" classname="net.java.games.jogl.GL" /> + </target> + <target name="java.class.path.validate" depends="test.for.jogl.jar" if="jogl.jar.on.class.path"> + <fail> + + ****************************************************************** + ** Your CLASSPATH environment variable appears to be set (some ** + ** JOGL 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> + + <!-- ================================================================== --> + <!-- + - Validate the required properties + --> + <target name="validate" depends="antlr.jar.validate, java.home.dir.validate, java.class.path.validate" + description="Validate required properties" /> + +</project> |