Use Ant properties (with dot-separated java style naming convention) |
gant snippet |
- admin
- Email: uwarov@gmx.de
- Join date: 07-21-07
- Posts: 1
Rate it
Ad
Poll
Loading ...
Most popular search terms:
Stats
-
Since publication, this page was visited 417 time(s).
Given an ant property file:
>less project.properties project.version=1.0.5 extension.version=1.0.5-01
The properties can be used from GAnt:
ant.property(file : basedir + '/project.properties') def antProp = ant.project.properties // "shortcut" to ant properties print 'Project version is ' + antProp.project.version print "Extension version is ${extension.version}"
antProp can also be used to access any Properties, defined within Ant.
|
TAGS
|
|
SOCIAL
|


















