Robin
Robin

Reputation: 2616

Pass a command line argument to Ant in Hudson

I'm trying to pass a -lib argument to ant as part of an automated build using Hudson but can't see a way to do this. I could add the relevant libraries to the ant/lib folder but that would then mean the same version of the library necessarily being shared by all builds on that machine.

Any help much appreciated.

Upvotes: 2

Views: 3110

Answers (1)

Mark
Mark

Reputation: 29129

In your Hudson job configuration you can specify ant arguments such as -lib in the Targets field. See the help message that opens when you click the ? next to the Targets field.

Upvotes: 9

Related Questions