This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant problem please solve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant problem please solve" Watch "ant problem please solve" New topic
Author

ant problem please solve

girish mishra
Greenhorn

Joined: Apr 05, 2010
Posts: 22
there is one more problem when i put srcdir="." then C:/>ant
utility at commont prompt try to compile all the file existing inside any perticular folder and if it gets error then compilation get failed.


reply please
Thanks,
Girish
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
161

Which task are you adding that attribute to? And why are you adding "." as the srcdir? Please post any relevant section from the build file.

[My Blog] [JavaRanch Journal]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Wow, a srcdir of '.' and a basedir of c:\ is bound to cause interesting results! If this is in the javac task, like I suspect, Ant will compile every .java file it finds on your C: drive!

You should, instead, create a directory and place everything for your app into that directory, including the build.xml file. Then cd to that directory before running ant!


JBoss In Action
 
wood burning stoves
 
subject: ant problem please solve
 
Similar Threads
Ant Build inside Eclipse Problem
Netbeans IDE for Part II preperation
hibernatetool error
ant optional task and core give the problem in version mismatch
Ant automatically runs