This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes warning 'includeantruntime' was not set ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "warning Watch "warning New topic
Author

warning 'includeantruntime' was not set ?

mark I thomas
Ranch Hand

Joined: Apr 07, 2008
Posts: 86
My ant script gives this warning msg when it runs ---

warning 'includeantruntime' was not set , defaulting to build.sysclasspath=last; set to false for repeatable builds.

Can someone tell me what it means and how to fix ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
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.


Ping & DNS - my free Android networking tools app
mark I thomas
Ranch Hand

Joined: Apr 07, 2008
Posts: 86
Thanks. So if people use Ant 7 or earlier version they would not get such warning ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
Correct.
vinay ravi
Greenhorn

Joined: Apr 21, 2010
Posts: 10
Hi,

Its works well !!

Thanks for the post , now, i am totally able to get rid off these unnecessary warnings .

Karsten Wutzke
Ranch Hand

Joined: Jul 20, 2010
Posts: 106

Are there any ways to configure this without cluttering each build.xml? How/where?

Karsten


OCJP JavaSE 6 (86%)
Peter Fat
Greenhorn

Joined: Oct 18, 2010
Posts: 24
Ulf Dittmer wrote: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.


How do I do that?

Thanks ^_^
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

@Peter Fat:



JBoss In Action
Peter Fat
Greenhorn

Joined: Oct 18, 2010
Posts: 24
Actually is not needed anymore since I won't be needing Ant after all. Thanks anyway!
Prageeth Jayasinghe
Greenhorn

Joined: Jan 28, 2009
Posts: 1
It works. Thanks.
gain knowledge
Greenhorn

Joined: Feb 02, 2012
Posts: 1
Ulf Dittmer wrote: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.


this solution really helped.Thanks.
 
Consider Paul's rocket mass heater.
 
subject: warning 'includeantruntime' was not set ?
 
Similar Threads
problem using netbeans web application sample
Making android apps using netbeans
Setting includeantruntime within Netbeans
Submission Jar: test case + Ant build script
ant build tool warning