khaleel. Powered by Blogger.

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

Thursday 2 June 2011

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

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
Promote Your Blog

About This Blog

This blog is for java lovers

Total Pageviews

About Me

khaleel-bapatla
BAPATLA, ap, India
simple and honest
View my complete profile

  © Blogger template On The Road by Ourblogtemplates.com 2009

Back to TOP