This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant making extra folder for me

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wrote a ant script for compile all java classes in src/test and paste them to the src/classes folder.


it is doing all things.but it is making another directory test at classes directory.
why is that .where is the error?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that you set srcdir incorrectly - you set it to the test directory, which is causing that directory to be created. In addition, for this simple example you do not need to set classpath - the compiler assumes that your source directory is in the classpath. Thus the javac task should read:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic