ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Echlin, Robert" <Robert.Ech...@windriver.com>
Subject RE: Has ant an built in java compiler?
Date Mon, 12 Sep 2011 16:46:17 GMT
Sorry Beat,
I did not answer your question.

Ant does not have a Java compiler.
Java has a Java compiler.

It looks to me as if Java is running the "modern" compiler that is built into your version
of Java.
If Java has to load some java classes to do the compile, it know where to get them, so has
no need to use the command line.
When forking, it needs to start up a new Java invocation anyway so it uses the command line
to run javac.

Hope this helps,
Rob


> -----Original Message-----
> From: Echlin, Robert [mailto:Robert.Echlin@windriver.com]
> Sent: Monday, September 12, 2011 12:34 PM
> To: Ant Users List
> Subject: RE: Has ant an built in java compiler?
> 
> Sounds like it is running the compilation in the current inv9ocation of java.
> 
> Rob
> 
> > -----Original Message-----
> > From: Beat Meier [mailto:mbe_ml@swiss-wireless.com.ar]
> > Sent: Monday, September 12, 2011 12:19 PM
> > To: user@ant.apache.org >> Ant Users List
> > Subject: Has ant an built in java compiler?
> >
> > Hello
> >
> > Has ant (1.8.2) an built in java compiler?
> > What compiler is used if in javac fork=no (default) is used?
> >
> > My external specified compiler if fork=no is not called, because I have
> > a wrapper script to debug the command line invocation.
> > With fork=yes it is used. I have read the with fork=yes the external
> > compiler is used but what is used with fork=no?
> >
> > Example of my javac
> > <javac srcdir="${build.src}"
> >             destdir="${build.dir}/classes"
> >             debug="${debug}"
> >             optimize="${optimize}"
> >             deprecation="${deprecation}"
> >             verbose="${compiler.verbose}"
> >             target="1.4"
> >             source="1.3"
> >             fork="${compiler.fork}"
> >             includeAntRuntime="yes">
> > <compilerarg line="-Xlint -Xlint:-serial -Xlint:-unchecked"
> > compiler="modern"/>
> > <classpath refid="project.class.path"/>
> > </javac>
> >
> >
> > Thanks
> >
> > Beat
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message