aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant and command line args Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant and command line args" Watch "Ant and command line args" New topic
Author

Ant and command line args

Kevin Crocker
Greenhorn

Joined: Sep 06, 2002
Posts: 20
Not sure if this is the right forum but here is my problem.
I am using ant to automate my build of my java application. I can use the call "ant -listener <filename> -logfile build.log" from the command prompt.
When I try to create a batch file to schedule the running of ant I lose the classpath I have set up (or so I assume).
I have tried using an Ant task but I do not know how to pass the args in to the call.
Please help!
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Since nobody has responded you might cross post this in Open Source Projects. It's mostly ant questions.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
moving as suggested


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Erik Hatcher
Author
Ranch Hand

Joined: Jun 11, 2002
Posts: 111
Which listener are you trying to use? In your batch file are you launching Ant directly or using ant.bat internally as well?

Originally posted by Kevin Crocker:
Not sure if this is the right forum but here is my problem.
I am using ant to automate my build of my java application. I can use the call "ant -listener <filename> -logfile build.log" from the command prompt.
When I try to create a batch file to schedule the running of ant I lose the classpath I have set up (or so I assume).
I have tried using an Ant task but I do not know how to pass the args in to the call.
Please help!


Co-author of Lucene in Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant and command line args