bharal
bharal

Reputation: 16164

how do i run command-line ant with stuff in the classpath?

In eclipse, I can tell my external ant tool to run with stuff in the classpath.

If i want to run ant from the command line, how would i do that?

For argument's sake, the classpath i want to add is c:\some\folder\here\hooray.jar

Upvotes: 4

Views: 4835

Answers (1)

Tom
Tom

Reputation: 3166

Use the -lib argument. From the Ant docs on this page:

Additional directories to be searched may be added by using the -lib option. The -lib option specifies a search path. Any jars or classes in the directories of the path will be added to Ant's classloader.

Upvotes: 5

Related Questions