wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes ant making extra folder for me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant making extra folder for me" Watch "ant making extra folder for me" New topic
Author

ant making extra folder for me

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1032
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

Joined: May 14, 2008
Posts: 5779
    
    7

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:



JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant making extra folder for me
 
Similar Threads
Ant+JUnit
Fallen at the first hurdle!
Ant - compile task and source directory setup
[junit] java.lang.ClassNotFoundException: UserActivityTest
ant property problems