diff options
author | Sven Gothel <[email protected]> | 2010-05-12 00:23:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-12 00:23:09 +0200 |
commit | e7188b0711f0a46c1d0ffec5668467f603a859df (patch) | |
tree | 90a99302a37ce92fc8c3f3e82bbd2aaf8754f1d8 /make | |
parent | eb33345f2bf83f35fa9c425f9d23a5f0a7107983 (diff) |
Put junit.jar 4.8.2, antlr.jar 2.7.7 into make/lib, and use it as the default, if not specified otherwise in /home/sven/gluegen.properties
Diffstat (limited to 'make')
-rw-r--r-- | make/build-junit.xml | 6 | ||||
-rwxr-xr-x | make/build.xml | 8 | ||||
-rwxr-xr-x | make/gluegen-properties.xml | 11 | ||||
-rwxr-xr-x | make/gluegen.properties | 11 | ||||
-rw-r--r-- | make/lib/antlr.jar | bin | 0 -> 443876 bytes | |||
-rw-r--r-- | make/lib/antlr.txt | 1 | ||||
-rw-r--r-- | make/lib/junit-4.5.jar | bin | 198945 -> 0 bytes | |||
-rw-r--r-- | make/lib/junit.jar | bin | 0 -> 237344 bytes | |||
-rw-r--r-- | make/lib/junit.txt | 1 | ||||
-rwxr-xr-x | make/validate-properties.xml | 21 |
10 files changed, 15 insertions, 44 deletions
diff --git a/make/build-junit.xml b/make/build-junit.xml index dc0506b..ad625ba 100644 --- a/make/build-junit.xml +++ b/make/build-junit.xml @@ -4,10 +4,6 @@ <description>JUNIT Tests GlueGen</description> - <!-- On jpackage.org-compatible systems, antlr.jar can be found in /usr/share/java --> - <available property="antlr.jar" file="/usr/share/java/antlr.jar" - value="/usr/share/java/antlr.jar"/> - <property name="gluegen.root" value=".." /> <import file="gluegen-cpptasks.xml" /> @@ -53,8 +49,6 @@ <property name="gluegen-rt.jar" location="${gluegen.root}/${rootrel.build}/gluegen-rt.jar" /> <property name="gluegen.lib" value="${gluegen.root}/${rootrel.build}/obj" /> - <property name="junit.jar" value="${gluegen.root}/make/lib/junit-4.5.jar" /> - <property name="gluegen-test.jar" location="${build_t}/gluegen-test.jar" /> <path id="gluegen.classpath"> diff --git a/make/build.xml b/make/build.xml index c49c714..722e601 100755 --- a/make/build.xml +++ b/make/build.xml @@ -22,10 +22,6 @@ <!-- This is the version of GlueGen you are building --> <property name="gluegen_base_version" value="1.0-beta07"/> - <!-- On jpackage.org-compatible systems, antlr.jar can be found in /usr/share/java --> - <available property="antlr.jar" file="/usr/share/java/antlr.jar" - value="/usr/share/java/antlr.jar"/> - <import file="gluegen-cpptasks.xml" /> <condition property="rootrel.build" value="build"> @@ -653,7 +649,7 @@ <javac destdir="${build}/test/build/classes" failonerror="false" source="1.5" srcdir="${gluegen.root}/test/junit" debug="true" debuglevel="lines,vars,source" includeAntRuntime="false"> - <classpath path="${gluegen.root}/make/lib/junit-4.5.jar:${build}/classes:${build}/test/gensrc/java:${tools.jar}:${ant.core.lib}"/> + <classpath path="${junit.jar}:${build}/classes:${build}/test/gensrc/java:${tools.jar}:${ant.core.lib}"/> </javac> <junit forkmode="once" showoutput="true" fork="true"> @@ -671,7 +667,7 @@ <formatter usefile="true" type="xml"/> </batchtest> <classpath> - <path path="${build}/test/build/classes:${build}/test/gensrc/java:${build}/classes:${antlr.jar}:${gluegen.root}/make/lib/junit-4.5.jar:${tools.jar}:${ant.core.lib}"/> + <path path="${build}/test/build/classes:${build}/test/gensrc/java:${build}/classes:${antlr.jar}:${junit.jar}:${tools.jar}:${ant.core.lib}"/> </classpath> </junit> </target> diff --git a/make/gluegen-properties.xml b/make/gluegen-properties.xml index 2afc533..ec3b988 100755 --- a/make/gluegen-properties.xml +++ b/make/gluegen-properties.xml @@ -35,17 +35,14 @@ <!-- Load the user specified properties file that defines various host - specific paths. The user will be notified if this is does not - exist. --> - <condition property="gluegen.user.properties.file" - value="${user.home}/gluegen.properties"> - <not> - <isset property="gluegen.user.properties.file" /> - </not> - </condition> + <property name="gluegen.user.properties.file" value="${user.home}/gluegen.properties"/> <property name="gluegen.user.properties.file.set" value="${gluegen.user.properties.file}"/> <property file="${gluegen.user.properties.file.set}" /> <echo message="Loaded ${gluegen.user.properties.file.set}." /> - <fail message="antlr.jar was not specified in gluegen.properties. Please see README.txt for instructions" unless="antlr.jar"/> + <property name="antlr.jar" value="${gluegen.root}/make/lib/antlr.jar" /> + <property name="junit.jar" value="${gluegen.root}/make/lib/junit.jar" /> <echo message="antlr.jar=${antlr.jar}" /> + <echo message="junit.jar=${junit.jar}" /> </target> </project> diff --git a/make/gluegen.properties b/make/gluegen.properties index 2f319bc..29b3351 100755 --- a/make/gluegen.properties +++ b/make/gluegen.properties @@ -9,17 +9,18 @@ # ############################################################################### # -# The required antlr.jar property that is the full path to the antlr.jar -# including the name of the jar +# You may include a custom antlr.jar file in the antlr.jar property. # # Windows -antlr.jar=C:/JOGL/lib/antlr-2.7.2.jar +# antlr.jar=C:/JOGL/lib/antlr-2.7.7.jar # Linux / Solaris / .. # antlr.jar=/home/sven/projects/JOGL/lib/antlr-2.7.7.jar # Mac OS X -# antlr.jar=/JOGL/lib/antlr-2.7.2.jar +# antlr.jar=/JOGL/lib/antlr-2.7.7.jar -junit.jar=/home/sven/projects/JOGL/lib/junit-4.5.jar +# You may include a custom junit.jar file in the junit.jar property. +# +# junit.jar=/home/sven/projects/JOGL/lib/junit.jar # If you are building the native code for the GlueGen run-time library # on Windows and have the Microsoft Visual C++ compilers installed, diff --git a/make/lib/antlr.jar b/make/lib/antlr.jar Binary files differnew file mode 100644 index 0000000..42f25e5 --- /dev/null +++ b/make/lib/antlr.jar diff --git a/make/lib/antlr.txt b/make/lib/antlr.txt new file mode 100644 index 0000000..74b17b3 --- /dev/null +++ b/make/lib/antlr.txt @@ -0,0 +1 @@ +version 2.7.7 diff --git a/make/lib/junit-4.5.jar b/make/lib/junit-4.5.jar Binary files differdeleted file mode 100644 index 7339216..0000000 --- a/make/lib/junit-4.5.jar +++ /dev/null diff --git a/make/lib/junit.jar b/make/lib/junit.jar Binary files differnew file mode 100644 index 0000000..5b4bb84 --- /dev/null +++ b/make/lib/junit.jar diff --git a/make/lib/junit.txt b/make/lib/junit.txt new file mode 100644 index 0000000..c7b67bc --- /dev/null +++ b/make/lib/junit.txt @@ -0,0 +1 @@ +version 4.8.2 diff --git a/make/validate-properties.xml b/make/validate-properties.xml index 195fb2a..42fd16f 100755 --- a/make/validate-properties.xml +++ b/make/validate-properties.xml @@ -5,25 +5,6 @@ --> <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 the GlueGen properties ** - ** file ** - ** "${user.properties.file}" ** - ** (or this file was not found). ** - ** ** - ** Please set "antlr.jar" to to the full path of the ANTLR jar ** - ** including the jar itself. ** - ******************************************************************** - </fail> - </target> - <!-- - 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 @@ -45,7 +26,7 @@ <!-- - Validate the required properties --> - <target name="validate" depends="antlr.jar.validate, java.class.path.validate" + <target name="validate" depends="java.class.path.validate" description="Validate required properties" /> </project> |