You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by bo...@apache.org on 2003/12/09 14:46:02 UTC

cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

bodewig     2003/12/09 05:46:02

  Modified:    .        gump.xml
               stylesheet bash.xsl build.xsl win2k.xsl
  Log:
  Add sysproperty to workspace
  
  Revision  Changes    Path
  1.3       +1 -0      jakarta-gump/gump.xml
  
  Index: gump.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/gump.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- gump.xml	7 Jan 2003 15:06:22 -0000	1.2
  +++ gump.xml	9 Dec 2003 13:46:02 -0000	1.3
  @@ -6,6 +6,7 @@
              sync="rsync -r -a --delete" version="0.3">
   
     <property name="build.sysclasspath" value="only"/>
  +  <sysproperty name="java.awt.headless" value="true"/>
   
     <profile href="profile/gump.xml"/>
   
  
  
  
  1.88      +14 -0     jakarta-gump/stylesheet/bash.xsl
  
  Index: bash.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/stylesheet/bash.xsl,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- bash.xsl	26 Nov 2003 14:24:19 -0000	1.87
  +++ bash.xsl	9 Dec 2003 13:46:02 -0000	1.88
  @@ -446,6 +446,20 @@
         <xsl:value-of select="@value"/>
       </xsl:for-each>
   
  +    <xsl:for-each select="sysproperty">
  +      <xsl:text> -D</xsl:text>
  +      <xsl:value-of select="@name"/>
  +      <xsl:text>=</xsl:text>
  +      <xsl:choose>
  +        <xsl:when test="@type = 'path' and $cygwin = 1">
  +          <xsl:text>'`cygpath --path --windows "</xsl:text>
  +          <xsl:value-of select="@value"/>
  +          <xsl:text>"`'</xsl:text>
  +        </xsl:when>
  +        <xsl:otherwise><xsl:value-of select="@value"/></xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:for-each>
  +
       <xsl:text> </xsl:text><xsl:value-of select="$ant-cmd"/>
   
       <xsl:if test="@buildfile">
  
  
  
  1.57      +1 -0      jakarta-gump/stylesheet/build.xsl
  
  Index: build.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/stylesheet/build.xsl,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- build.xsl	18 Aug 2003 09:40:43 -0000	1.56
  +++ build.xsl	9 Dec 2003 13:46:02 -0000	1.57
  @@ -253,6 +253,7 @@
   
       <xsl:copy>
         <xsl:apply-templates select="@*"/>
  +      <xsl:apply-templates select="/workspace/sysproperty"/>
         <xsl:apply-templates select="/workspace/property"/>
         <xsl:apply-templates select="*"/>
   
  
  
  
  1.50      +14 -0     jakarta-gump/stylesheet/win2k.xsl
  
  Index: win2k.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/stylesheet/win2k.xsl,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- win2k.xsl	26 Nov 2003 14:24:19 -0000	1.49
  +++ win2k.xsl	9 Dec 2003 13:46:02 -0000	1.50
  @@ -391,6 +391,20 @@
         <xsl:value-of select="@value"/>
       </xsl:for-each>
   
  +    <xsl:for-each select="sysproperty">
  +      <xsl:text> -D</xsl:text>
  +      <xsl:value-of select="@name"/>
  +      <xsl:text>=</xsl:text>
  +      <xsl:choose>
  +        <xsl:when test="@type='path'">
  +          <xsl:value-of select="translate(@value,'/','\')"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <xsl:value-of select="@value"/>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:for-each>
  +
       <xsl:text> Launcher </xsl:text><xsl:value-of select="translate(../initdir/@dir,'/','\')"/><xsl:text>\cp.properties org.apache.tools.ant.Main</xsl:text>
   
       <xsl:if test="@buildfile">
  
  
  

Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> >     java.ext.dirs Path of extension directory or directories
> >
> > Is there something here?
>
> It is not the same as the bootclasspath (sorry).

No, I was thinking it is was to do with extensions.

http://java.sun.com/j2se/1.4.1/docs/guide/extensions/
http://java.sun.com/j2se/1.4.1/docs/guide/extensions/extensions.html

I saw this:
"Other locations for installed optional packages can be specified through
the system property java.ext.dirs. This property specifies one or more
directories to search for installed optional packages, each separated by
File.pathSeparatorChar. The default setting for this property is the
standard directory for installed optional packages indicated above."


We (Gump) could *perhaps* stop setting the bootclasspath and start creating
extension. I don't know if we can put our jars in directories in front of
the JDKs, but maybe. I don't have much time today, but I could try to do
more research some time/

So, this or we set a bootclasspath ant specific property, you think?

regards,

Adam


Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 9 Dec 2003, Adam R. B. Jack <aj...@trysybase.com> wrote:

> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
> 
> has:
> 
>     java.ext.dirs Path of extension directory or directories
> 
> Is there something here?

It is not the same as the bootclasspath (sorry).

Stefan

Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
>     Endorsed Standards Override Mechanism
>     http://java.sun.com/j2se/1.4.2/docs/guide/standards/
>
> I don't know how exactly (I dug in a little bit and didn't see a way) but
I
> wonder.

Hmm...

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()

has:

    java.ext.dirs            Path of extension directory or directories

Is there something here?

regards

Adam


Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> The bootclasspath part rather difficult.

Yeah, I see -- it is annoying it isn't detailed in here:


http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()

anything Gump can do to help, e.g. setting a named ant property?

Also, since we really only use the bootclasspath to override XML (AFAIK)
ought we be looking at :

    Endorsed Standards Override Mechanism
    http://java.sun.com/j2se/1.4.2/docs/guide/standards/

I don't know how exactly (I dug in a little bit and didn't see a way) but I
wonder.

At the end of the day, isn't this a JVM/Javasoft problem? Is there somewhere
we can post to communicate with them?

regards

Adam


Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 9 Dec 2003, Adam R. B. Jack <aj...@trysybase.com> wrote:

> Stefan, you had chance to look into that in ant?

Not yet.

I'll be on a plane for much of tomorrow - a lot of Ant code has been
written in planes, maybe it will be my first time to do so 8-)

> Is it just a case of some heavy lifting code, or are there
> quirks/gotchas/ramifications to others?

Some of all of them.

The system property stuff is rather easy (abuse propertref
internally).  The bootclasspath part rather difficult.  The "choose
the right VM" should work right now (if not, we've simply forgotten to
us JavaEnvUtils#getJreCommand("java") instead of "java").

org.apache.tools.ant.util.JavaEnvUtil should find the path to the java
executable that belongs to the VM currently running Ant.  All it uses
are java.home (set by the VM itself) and some hard coded logic about
the directory layout of common JREs/JDKs.

Stefan

Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> Now you can add <sysproperty> to your workspace and it will become a
> Java system property when running Ant - but for now, only for the VM
> that is running Ant.

... but not for VMs that Ant then runs so don't fork any tests/sub-builds.
;-)

Stefan, you had chance to look into that in ant? Is it just a case of some
heavy lifting code, or are there quirks/gotchas/ramifications to others?
Thanks for letting me assign it to you, btw.

regards,

Adam


Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by Stefan Bodewig <bo...@apache.org>.
On 9 Dec 2003, <bo...@apache.org> wrote:

>   Add sysproperty to workspace

Now you can add <sysproperty> to your workspace and it will become a
Java system property when running Ant - but for now, only for the VM
that is running Ant.

Stefan

Re: cvs commit: jakarta-gump/stylesheet bash.xsl build.xsl win2k.xsl

Posted by Stefan Bodewig <bo...@apache.org>.
I forgot to mention that

On 9 Dec 2003, <bo...@apache.org> wrote:

>   Index: gump.xml
[...]
>   +  <sysproperty name="java.awt.headless" value="true"/>

should set java.awt.headless for all builds on gump.covalent.net.

Stefan