ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stewart, Robbie (Contractor)" <Robbie.Stew...@dsto.defence.gov.au>
Subject RE: Using nested <arg>s with <java> task
Date Wed, 20 Sep 2000 05:22:44 GMT
... 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