ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/xdocs faq.xml
Date Wed, 21 Nov 2001 16:42:26 GMT
bodewig     01/11/21 08:42:26

  Modified:    docs     faq.html
               xdocs    faq.xml
  Log:
  add faq about defaultexcludes.
  
  Submitted by:	Jonathan Chawke <j_chawke@hotmail.com>
  
  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>&lt;exec&gt;</code> task?
     </a></li>
  +                    <li><a href="#defaultexcludes">
  +  I've made a &lt;delete&gt; 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>&lt;arg&gt;</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 &lt;delete&gt; 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>
  +&lt;delete&gt;
  +  &lt;fileset dir=&quot;${build.src}&quot; includes=&quot;**/vssver.scc&quot;/&gt;
  +&lt;/delete&gt;
  +</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>
  +&lt;delete&gt;
  +  &lt;fileset dir=&quot;${build.src}&quot; includes=&quot;**/vssver.scc&quot;
  +           defaultexcludes=&quot;no&quot;/&gt;
  +&lt;/delete&gt;
  +</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 &lt;delete&gt; 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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message