ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coote, Tim" <Tim.Co...@capgemini.co.uk>
Subject RE: Using nested <arg>s with <java> task
Date Wed, 20 Sep 2000 07:45:57 GMT
Behaviour changed by forking ?

Sounds like a great potential source of latent bugs in build files.

tc

-----Original Message-----
From: Stewart, Robbie (Contractor)
[mailto:Robbie.Stewart@dsto.defence.gov.au]
Sent: 20 September 2000 06:23
To: 'ant-user@jakarta.apache.org'
Subject: RE: Using nested <arg>s with <java> task


... still more ...
Thought I might read the lastest doco's ... lo and behold, some things
are yesterdays news. The arg (and jvmarg) attribute to java is deprecated
and
all good girls and boys should use ...

  <java classname="COM.foo.bar.Main"
        fork="yes" >
    <jvmarg value="-Dfoo=bar -Dbaz=boz" /> 
  </java>

Robbe Stewart
Contractor
2.C.64



> -----Original Message-----
> From: Stewart, Robbie (Contractor)
> [mailto:Robbie.Stewart@dsto.defence.gov.au]
> Sent: Wednesday, September 20, 2000 2:23 PM
> To: 'ant-user@jakarta.apache.org'
> Subject: RE: Using nested <arg>s with <java> task
> 
> 
> More ..
> Sorry, hit 'send' too quickly. JVM args are ignored if 
> process is not forked
> (which is the default) .. so you need the fork attribute
> 
>  <java classname="COM.foo.bar.Main"
>         fork="yes"
>         jvmargs="-Dfoo=bar -Dbaz=boz"
>   />
> 
> Robbe Stewart
> Contractor
> 2.C.64
> 

Mime
View raw message