bodewig 00/10/13 02:14:46
Modified: docs index.html
src/main/org/apache/tools/ant/taskdefs Property.java
Log:
Added a location attribute to <property> to provide easy access to the
Project.resolvePath functionality to the user.
Submitted by: Jose Alberto Fernandez <[EMAIL PROTECTED]>
Revision Changes Path
1.130 +10 -2 jakarta-ant/docs/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/index.html,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- index.html 2000/10/12 15:59:14 1.129
+++ index.html 2000/10/13 09:14:25 1.130
@@ -26,7 +26,7 @@
<li>Dave Walend (<a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>)</li>
</ul>
-<p>Version 1.2 - 2000/10/12</p>
+<p>Version 1.2 - 2000/10/13</p>
<hr>
<h2>Table of Contents</h2>
@@ -3411,7 +3411,7 @@
<tr>
<td valign="top">value</td>
<td valign="top">the value of the property.</td>
- <td valign="middle" align="center" rowspan="4">Yes</td>
+ <td valign="middle" align="center" rowspan="5">Yes</td>
</tr>
<tr>
<td valign="top">refid</td>
@@ -3426,6 +3426,14 @@
<tr>
<td valign="top">file</td>
<td valign="top">the filename of the property file .</td>
+ </tr>
+ <tr>
+ <td valign="top">location</td>
+ <td valign="top">Sets the property to the absolute filename of the
+ given file. If the value of this attribute is an absolute path, it
+ is left unchanged (with / and \ characters converted to the
+ current platforms conventions). Otherwise it is taken as a path
+ relative to the project's basedir and expanded.</td>
</tr>
</table>
<h3>Examples</h3>
1.19 +4 -0
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Property.java
Index: Property.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Property.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Property.java 2000/10/02 13:52:08 1.18
+++ Property.java 2000/10/13 09:14:37 1.19
@@ -85,6 +85,10 @@
return name;
}
+ public void setLocation(File location) {
+ setValue(location.getAbsolutePath());
+ }
+
public void setValue(String value) {
this.value = value;
}