Only if you are using a "bootstrap" build.xml which then executes the real 
build via the <exec> task.

JEC
-- 
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


Mark Lybarger <[EMAIL PROTECTED]> wrote on 07/19/2005 02:39:44 PM:

> is it possible to set the ANT_OPTS inside the build.xml? or a property 
file 
> perhaps?..
> 
> On 7/19/05, Mark Lybarger <[EMAIL PROTECTED]> wrote:
> > 
> > that works nicely, thanks a bundle.
> > 
> > On 7/19/05, Jeffrey E Care <[EMAIL PROTECTED]> wrote:
> > > 
> > > -D options given to the ant script are treated as Ant property
> > > declarations, not JVM properties. You should be able to use the 
ANT_OPTS
> > > environment variable to pass options to the VM.
> > > 
> > > --
> > > Jeffrey E. Care ( [EMAIL PROTECTED])
> > > WebSphere Build SWAT Team Lead
> > > WebSphere Build Tooling Lead (Project Mantis)
> > > https://w3.opensource.ibm.com/projects/mantis
> > > 
> > > 
> > > Mark Lybarger <[EMAIL PROTECTED]> wrote on 07/19/2005 12:43:04 PM:
> > > 
> > > > i've got an ant build script. our "default" jdk is IBM jdk 1.4.2. 
our
> > > web
> > > > app requires a specific version of xalan.jar to build. we can 
build 
> > > just
> > > 
> > > > fine on intel box by specifying sun's jvm. when deploying to jboss 
we
> > > use
> > > > the endorsed.dirs to use our xalan.jar, and can run ok under IBM's 

> > > jvm. 
> > > i
> > > > need (someone on the team wants) to be able to build on the power5
> > > machine
> > > > which only includes IBM's jvm. i've tried to run ant like:
> > > >
> > > > ant -Djava.endorsed.dirs=/home/me/tmp/
> > > > 
> > > > where the tmp folder includes the needed xalan.jar. this doesn't 
seem 
> > > to
> > > 
> > > > work to get me to compile the application. if anyone has 
suggestions 
> > > on
> > > how
> > > > i can specify the java.endorsed.dirs to run this build, i'd be 
most 
> > > > appreciated.
> > > >
> > > > ~mark
> > > 
> > > 
> >

Reply via email to