aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes executing jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "executing jar files" Watch "executing jar files" New topic
Author

executing jar files

deepa manchepalli
Greenhorn

Joined: Jul 23, 2004
Posts: 2
how do i write an ant build file that does the following:

java -jar abc.jar -o c:\xyz <filename>

-o and <filename> are arguments to abc.jar

Thanks,
Deepa.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, deepa!

With just a quick look through the Ant Manual, I was able to figure out how to do this.

[ July 25, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
deepa manchepalli
Greenhorn

Joined: Jul 23, 2004
Posts: 2
Thanks Dirk! I figured it but was unable to post the reply with code (i did use ). I am running into classpath problems but you confirmed the script.

Thanks again,
Deepa.
 
IntelliJ Java IDE
 
subject: executing jar files
 
Threads others viewed
Properties files in JNLP
add multiple classing using * to an existing jar
unjar
modifying an existing jar file using ant
classpath setup by taking jars from multiple directory