mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 06:09:32 +00:00
74 lines
2.5 KiB
HTML
74 lines
2.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<title>Ant-contrib Tasks: Pathtofileset</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Pathtofileset</h1>
|
|
|
|
<p>Coverts a path to a fileset. This is usefull if you have
|
|
a path but need to use a fileset as input in a ant task.
|
|
</p>
|
|
|
|
<h2>Parameters</h2>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<th>Attribute</th>
|
|
<th>Description</th>
|
|
<th>Required</th>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">dir</td>
|
|
<td valign="top">The root of the directory tree of this FileSet</td>
|
|
<td align="center" valign="top">Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">pathrefid</td>
|
|
<td valign="top">The reference to the path to convert from</td>
|
|
<td align="center" valign="top">Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">ignorenonrelative</td>
|
|
<td valign="top">This boolean controls what will happen if any of the
|
|
files in the path are not in the directory for the fileset. If this
|
|
is "true" the files are ignored, if this is "false" a build exception
|
|
is thrown. (Note: if files are not present no check is made).
|
|
</td>
|
|
<td align="center" valign="top">No, default is "false"</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">name</td>
|
|
<td valign="top">This is the identifier of the fileset to create. This
|
|
fileset will contain the files that are relative to the directory root.
|
|
Any files that are not present will not be placed in the set.
|
|
</td>
|
|
<td align="center" valign="top">Yes</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
<h2>Example</h2>
|
|
<pre>
|
|
<outofdate outputsourcespath="modified.sources.path">
|
|
<sourcefiles>
|
|
<fileset dir="a/b/c" includes="**/*.java"/>
|
|
</sourcefiles>
|
|
<mapper dir="a/b/c" type="glob" from="*.java" to="output/*.xml"/>
|
|
<sequential>
|
|
<pathtofileset name="modified.sources.fileset"
|
|
pathrefid="modified.sources.path"
|
|
dir="a/b/c"/>
|
|
<copy todir="output">
|
|
<fileset refid="modified.sources.fileset"/>
|
|
<mapper type="glob" from="*.java" to="*.xml"/>
|
|
</copy>
|
|
</sequential>
|
|
</outofdate>
|
|
</pre>
|
|
|
|
<hr>
|
|
<p align="center">Copyright © 2003 Ant-Contrib Project. All
|
|
rights Reserved.</p>
|
|
|
|
</html>
|