Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ant warning: "'includeantruntime' was not set"

I receive the following warning:

[javac] build.xml:9: warning: 'includeantruntime' was not set,  defaulting to build.sysclasspath=last; set to false for repeatable builds 

What does this mean?

like image 949
user496949 Avatar asked Feb 24 '11 10:02

user496949


1 Answers

Ant Runtime

Simply set includeantruntime="false":

<javac includeantruntime="false" ...>...</javac> 

If you have to use the javac-task multiple times you might want to consider using PreSetDef to define your own javac-task that always sets includeantruntime="false".

Additional Details

From http://www.coderanch.com/t/503097/tools/warning-includeantruntime-was-not-set:

That's caused by a misfeature introduced in Ant 1.8. Just add an attribute of that name to the javac task, set it to false, and forget it ever happened.

From http://ant.apache.org/manual/Tasks/javac.html:

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.

like image 179
Daniel Kutik Avatar answered Oct 19 '22 15:10

Daniel Kutik