bodewig 01/11/21 08:42:26 Modified: docs faq.html xdocs faq.xml Log: add faq about defaultexcludes. Submitted by: Jonathan Chawke <[EMAIL PROTECTED]> Revision Changes Path 1.7 +79 -0 jakarta-ant/docs/faq.html Index: faq.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/faq.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- faq.html 2001/10/30 10:05:32 1.6 +++ faq.html 2001/11/21 16:42:26 1.7 @@ -157,6 +157,12 @@ How do I redirect standard input or standard output in the <code><exec></code> task? </a></li> + <li><a href="#defaultexcludes"> + I've made a <delete> task to delete unwanted + sourcesafe control files (CVS files, editor backup files), but + it doesn't seem to work. The files never get deleted. What's + wrong? + </a></li> </ul> </blockquote> </td></tr> @@ -711,6 +717,79 @@ </div> <p>Note, that you must use the <code>value</code> attribute of <code><arg></code> in the last element.</p> + </blockquote> + </td></tr> + </table> + </a> + <a name="defaultexcludes"> + <table border="0" cellspacing="0" cellpadding="2" width="100%"> + <tr><td bgcolor="#828DA6"> + <font color="#ffffff" face="arial,helvetica,sanserif"> + <strong> + I've made a <delete> task to delete unwanted + sourcesafe control files (CVS files, editor backup files), but + it doesn't seem to work. The files never get deleted. What's + wrong? + </strong> + </font> + </td></tr> + <tr><td> + <blockquote> + <p>This is probably happening because by default, Ant excludes + SourceSafe control files (<code>vssver.scc</code>) and other + files from FileSets.</p> + <p>Here's what you probably did:</p> + <div align="left"> + <table cellspacing="4" cellpadding="0" border="0"> + <tr> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + </tr> + <tr> + <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#ffffff"><pre> +<delete> + <fileset dir="${build.src}" includes="**/vssver.scc"/> +</delete> +</pre></td> + <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + </tr> + <tr> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + </tr> + </table> + </div> + <p>You need to switch off the default exclusions and it will work:</p> + <div align="left"> + <table cellspacing="4" cellpadding="0" border="0"> + <tr> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + </tr> + <tr> + <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#ffffff"><pre> +<delete> + <fileset dir="${build.src}" includes="**/vssver.scc" + defaultexcludes="no"/> +</delete> +</pre></td> + <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + </tr> + <tr> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> + </tr> + </table> + </div> + <p>For a complete listing of the patterns thate are excluded + by default, see <a href="manual/dirtasks.html">the user + manual</a>.</p> </blockquote> </td></tr> </table> 1.6 +35 -0 jakarta-ant/xdocs/faq.xml Index: faq.xml =================================================================== RCS file: /home/cvs/jakarta-ant/xdocs/faq.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- faq.xml 2001/10/30 10:05:39 1.5 +++ faq.xml 2001/11/21 16:42:26 1.6 @@ -258,6 +258,41 @@ </answer> </faq> + <faq id="defaultexcludes"> + + <question>I've made a <delete> task to delete unwanted + sourcesafe control files (CVS files, editor backup files), but + it doesn't seem to work. The files never get deleted. What's + wrong?</question> + + <answer> + <p>This is probably happening because by default, Ant excludes + SourceSafe control files (<code>vssver.scc</code>) and other + files from FileSets.</p> + + <p>Here's what you probably did:</p> + + + <source><![CDATA[ +<delete> + <fileset dir="${build.src}" includes="**/vssver.scc"/> +</delete> +]]></source> + + <p>You need to switch off the default exclusions and it will work:</p> + <source><![CDATA[ +<delete> + <fileset dir="${build.src}" includes="**/vssver.scc" + defaultexcludes="no"/> +</delete> +]]></source> + + <p>For a complete listing of the patterns thate are excluded + by default, see <a href="manual/dirtasks.html">the user + manual</a>.</p> + + </answer> + </faq> </faqsection> <faqsection title="Ant and IDEs/Editors">
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>