Ant [build.xml] 'includeantruntime' was not set

VfL_Freak

Top Contributor
Moin zusammen,

habe folgende kurze Frage:
ich hatte eben mein Eclipse von Helios auf Juno upgedatet und dann, nach wieder alles lief, mit meinen ant-Script compiliert.

Dabei bekomme ich folgende seltsame Warning, die mit nicht wirklich etwas sagt:
[javac] C:\ECLIPSE_workspace\WorkerClient\build.xml:42: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

Hier die entsprechenden Ausschnitte:
[JAVA=6]
<property name="src" location="src" />
<property name="build" location="build" />
[/code]
[JAVA=40]
<target name="compile" depends="init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"> // <== HIER !!
<classpath refid="classpath"/>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
[/code]

Hat jemand eine Idee, was das Ganze soll resp. was "includeantruntime" ist ??

Danke und Gruß
Klaus
 
Zuletzt bearbeitet von einem Moderator:
Diese Fehlermeldung liegt daran, dass die ANT Version sich durch deinen Eclipse Wechsel geändert hat.

Die Doku sagt dazu:
Whether to include the Ant run-time libraries in the classpath; defaults to yes, unless build.sysclasspath is set. It is usually best to set this to false so the script's behavior is not sensitive to the environment in which it is run.
Javac Task

Ich würde dir deswegen empfehlen, den Ausschnitt deiner build.xml auf folgendes zu ändern:
[XML]<target name="compile" depends="init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" includeAntRuntime="false"> // <== HIER !!
<classpath refid="classpath"/>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>[/XML]
 
Moin,

sorry, habe es gerade erst gelesen, da die Benachrichtigung im Spam-Ordner gelandet war :noe:

Stimmt, man muss es so eintragen, dann ist die Meldung auch weg :toll:

Danke und Gruß
Klaus
 

Neue Themen


Zurück
Oben