• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant problem please solve

 
girish mishra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic