~ubuntu-branches/ubuntu/wily/gluegen2/wily

« back to all changes in this revision

Viewing changes to make/validate-properties.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru
  • Date: 2010-12-04 16:22:37 UTC
  • Revision ID: james.westby@ubuntu.com-20101204162237-ma60n1ng0nf2eha7
Tags: upstream-2.0-rc1
ImportĀ upstreamĀ versionĀ 2.0-rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!-- 
 
3
   - A validator for all of the user-defined properties.  It will be called
 
4
   - from build.xml in the "init" task.
 
5
  -->
 
6
<project name="Configuration validator" default="validate">
 
7
 
 
8
    <!-- 
 
9
       - Make sure that gluegen.jar is not on the CLASSPATH; this can cause
 
10
       - builds to fail since if this Java process has the jar file open
 
11
       - we can not overwrite it.
 
12
      -->
 
13
    <target name="java.class.path.validate">
 
14
        <available property="gluegen.jar.on.class.path" classname="com.jogamp.gluegen.GlueGen" />
 
15
        <fail if="gluegen.jar.on.class.path">
 
16
    *******************************************************************
 
17
    ** Your CLASSPATH environment variable appears to be set (some   **
 
18
    ** GlueGen classes are currently visible to the build.) This can **
 
19
    ** cause the build to fail. Please unset your CLASSPATH          **
 
20
    ** variable and restart the build.                               **
 
21
    *******************************************************************
 
22
        </fail>
 
23
    </target>
 
24
 
 
25
    <!-- ================================================================== -->
 
26
    <!-- 
 
27
       - Validate the required properties 
 
28
      -->
 
29
    <target name="validate" depends="java.class.path.validate" 
 
30
            description="Validate required properties" />
 
31
 
 
32
</project>