File: validate-properties.xml

package info (click to toggle)
gluegen2 2.0-rc5-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,520 kB
  • sloc: java: 19,567; xml: 2,056; ansic: 1,434; sh: 588; makefile: 67
file content (32 lines) | stat: -rwxr-xr-x 1,360 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?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">

    <!-- 
       - Make sure that gluegen.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="java.class.path.validate">
        <available property="gluegen.jar.on.class.path" classname="com.jogamp.gluegen.GlueGen" />
        <fail if="gluegen.jar.on.class.path">
    *******************************************************************
    ** Your CLASSPATH environment variable appears to be set (some   **
    ** GlueGen 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="java.class.path.validate" 
            description="Validate required properties" />

</project>