• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant and command line args

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since nobody has responded you might cross post this in Open Source Projects. It's mostly ant questions.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
moving as suggested
 
Author
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic