aspose file tools*
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 JavaScript Promises Essentials this week in the JavaScript 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 liya
Ranch Hand

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