jar -xvf $APACHE_HOME/lib/ant.jar
look for file called 'defaults.properties'
look for keyword=Classname assigment
javac=org.apache.tools.ant.taskdefs.Javac
Override
setting the compiler attribute, specific to the current
<javac> task e.g. <javac compiler=
OR
by using a nested element of any
typedeffed or
componentdeffed type that implements
org.apache.tools.ant.taskdefs.compilers.CompilerAdapter
set 'build.compiler' in build.properties
classic (the standard compiler of JDK 1.1/1.2) –
javac1.1 and
javac1.2 can be used as aliases.modern (the standard compiler of JDK
1.3/1.4/1.5/1.6/1.7) –
javac1.3 and
javac1.4 and
javac1.5 and
javac1.6 and
javac1.7 (since Ant 1.8.2) can be used as aliases.jikes (the Jikes
compiler).jvc (the Command-Line Compiler from Microsoft's SDK
for Java / Visual J++) – microsoft can be used
as an alias.kjc (the kopi
compiler).gcj (the gcj compiler from gcc).sj (Symantec java compiler) –
symantec can be used as an alias.extJavac (run either modern or classic
in a JVM of
its own).
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Mon, 12 Sep 2011 13:19:02 -0300
> From: [email protected]
> To: [email protected]
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>