Backed out previous change that added a "dir" attribute, as this caused
backwards-compatibility issues. Added a "type" attribute instead, which
works with the "file" attribute to specify either a file or a directory.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268997 13f79535-47bb-0310-9956-ffa450edef68
@@ -51,13 +47,18 @@ execution depending on system parameters.</p>
<td valign="top">The resource to look for in the JVM.</td>
<td valign="top">The resource to look for in the JVM.</td>
</tr>
</tr>
<tr>
<tr>
<td valign="top">classpath</td> <td valign="top">The classpath to
use when looking up <code>classname</code> or <code>resource</code>.</td> <td
align="center" valign="top">No</td>
<td valign="top">classpath</td>
<tdvalign="top">The classpath to use when looking up <code>classname</code> or <code>resource</code>.</td>
<td align="center" valign="top">No</td>
</tr>
</tr>
<tr>
<tr>
<td valign="top">classpathref</td>
<td valign="top">classpathref</td>
<td valign="top">The classpath to use, given as a <a href="../using.html#references">reference</a> to a path defined elsewhere.</td>
<td valign="top">The classpath to use, given as a <a href="../using.html#references">reference</a> to a path defined elsewhere.</td>
<td align="center" valign="top">No</td>
</tr>
<tr>
<td valign="top">type</td>
<td valign="top">The type of <code>file</code> to look for, either a directory (<code>type="dir"</code>) or a file (<code>type="file"</code>). If not set, the property will be set if the name specified in the <code>file</code> attribute exists as either a file or a directory.</td>
<td align="center" valign="top">No</td>
<td align="center" valign="top">No</td>
</tr>
</tr>
@@ -78,6 +79,11 @@ if the class <code>org.whatever.Myclass</code> is found in Ant's classpath.</p>
<p>sets the <code>jaxp.jar.present</code> property to the value "true"
<p>sets the <code>jaxp.jar.present</code> property to the value "true"
if the file <code>./lib/jaxp11/jaxp.jar</code> is found.</p>
if the file <code>./lib/jaxp11/jaxp.jar</code> is found.</p>