ajack 2003/10/21 12:53:27
Modified: python/gump logic.py
Log:
Make awt.headless a JDK parameter, not an Ant parameter.
Revision Changes Path
1.37 +6 -1 jakarta-gump/python/gump/logic.py
Index: logic.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/logic.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- logic.py 21 Oct 2003 19:40:56 -0000 1.36
+++ logic.py 21 Oct 2003 19:53:27 -0000 1.37
@@ -281,6 +281,12 @@
cmd=Cmd(context.javaCommand,'build_'+module.name+'_'+project.name,\
basedir,{'CLASSPATH':classpath})
+ # Set this as a system property. Setting it here helps JDK1.4+
+ # AWT implementations cope w/o an X11 server running (e.g. on
+ # Linux)
+ #
+ cmd.addPrefixedParameter('-D','java.awt.headless','true','=')
+
if jvmargs:
cmd.addParameters(jvmargs)
@@ -298,7 +304,6 @@
# This sets the *defaults*, a workspace could override them.
#
cmd.addPrefixedParameter('-D','build.sysclasspath','only','=')
- cmd.addPrefixedParameter('-D','java.awt.headless','true','=')
# These are module level plus project level
cmd.addNamedParameters(properties)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]