theuphrates
theuphrates

Reputation: 3

How to send one property file and a value as parameters to an Ant script?

Is it possible to send one property file and a separate value as two different parameters to an Ant script ?

E.g. build.xml propertyfile=propfile -Dname1=value1

Upvotes: 0

Views: 67

Answers (1)

Rebse
Rebse

Reputation: 10377

RTFM ;-) means see Ant manual running Apache Ant, f.e.

ant -f whatever.xml -propertyfile=/var/usr/foobar.properties -Dfoo=bar

multiple -Dkey=value or -propertyfile=path/to/propertyfile are possible

Upvotes: 1

Related Questions