Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant and command line args

 
Kevin Crocker
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since nobody has responded you might cross post this in Open Source Projects. It's mostly ant questions.
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
moving as suggested
 
Erik Hatcher
Author
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic