It's not a secret anymore!
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "warning Watch "warning New topic
Author

warning 'includeantruntime' was not set ?

mark I thomas
Ranch Hand

Joined: Apr 07, 2008
Posts: 83
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: 35243
    
    7
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.


Android appsImageJ pluginsJava web charts
mark I thomas
Ranch Hand

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

Joined: Mar 22, 2005
Posts: 35243
    
    7
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: 5536

@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.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

gnana sankaran,
Your post was moved to a new topic.
Your question requires NetBeans expertice to answer, so I am moving it to the IDE forum.
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.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

"gain knowledge", please see your private messages regarding an important administrative matter.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: warning 'includeantruntime' was not set ?
 
Similar Threads
Making android apps using netbeans
Setting includeantruntime within Netbeans
Submission Jar: test case + Ant build script
ant build tool warning
problem using netbeans web application sample