ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: Getting parameters from a file
Date Tue, 24 Jul 2001 12:47:43 GMT
> In my ant file, I have a lot of properties (for example 
> <property name="db"
> value="C:\mts-test\"/> ).  Instead of having the 
> user to change
> the ant file, is it possible to get all those property values from a
> different file.

Have you looked at the documentation for the Property task?

There are five ways to set properties:

By setting the file attribute with the filename of the property file to
load. This property file has the format as defined by the file used in
the class java.util.Properties.

There are examples of how to do this within the documentation.


View raw message