Thursday, 2 June 2011

how-is-ant-property-task-used?

In order to to set the Ant properties, the task is used. Once property value is set, it cannot be changed. It means they are immutable.In order to set a property to a specific value, the name and value pair is used.

Example



If you want to set a property to a location then name/location assignment is used.
To use the properties surround them with ${}.

Example




A build.xml as shown in following code box displays how effectively property tasks can be used within a build.xml:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

19
20
21

22

23
24

25
26
27
28
29
30
31

32
33
34
35
37
38
39

40

41
42
43

44

45
46
47
48
49

50

No comments:

Post a Comment