I found a regular explression that works
<goal name="delete-cvs-info">
<ant:delete failonerror="false" includeemptydirs="yes">
<fileset dir="." defaultexcludes="no" includes="**/CVS/*"/>
</ant:delete>
</goal>
It doesn't delete the CVS folders but it deletes the other files in
these folders.
With any other definition I tryied it was not working.
Thanks for help,
Sergiu
David Jackman wrote:
>I think it's because Ant's default excludes are still being used, and
>they keep CVS directories out of the fileset
>(http://ant.apache.org/manual/dirtasks.html#defaultexcludes)
>
>Add defaultexcludes="no" to the fileset tag.
>
>Hope this works (I didn't test it).
>..David..
>
>
>-----Original Message-----
>From: sergiu gordea [mailto:gsergiu@ifit.uni-klu.ac.at]
>Sent: Friday, August 05, 2005 7:46 AM
>To: Maven Users List
>Subject: Re: delete CVS folders ...
>
>don't think that is the problem, the following code does also nothing
>
> <goal name="delete-cvs-info">
>
> <ant:delete failonerror="false">
> <fileset dir="." includes="CVS,**/CVS*,**/CVS,**/CVS/*"/>
> </ant:delete>
> </goal>
>I use maven 1.02 on linux ....
>I tried also
><ant:delete failonerror="false">
> <fileset dir="." includes="CVS/Root"/>
> </ant:delete>
>and is still not working ...
>
> Best,
>
> Sergiu
>
>
>Brett Porter wrote:
>
>
>
>>More of an Ant-ism, but I think that the separate include tag doesn't
>>take comma separated lists. If you put the same list in the includes of
>>
>>
>
>
>
>>the commented out part, it should work.
>>
>>- Brett
>>
>>On 8/5/05, sergiu gordea <gsergiu@ifit.uni-klu.ac.at> wrote:
>>
>>
>>
>>
>>>Hi all,
>>>
>>>I need to create a goal that deletes all CVS folders from my project
>>>and nothing more.
>>>I wrote the following script but it's not doing anything:
>>><goal name="delete-cvs-info">
>>> <!--
>>> <ant:delete failonerror="false">
>>> <fileset dir="." includes="CVS*,**/CVS*"/>
>>> </ant:delete>
>>> -->
>>> <move todir="tmp/CVS">
>>> <fileset dir=".">
>>> <include name="CVS,**/CVS*, **/CVS, **/CVS/*"/>
>>> </fileset>
>>> </move>
>>> </goal>
>>>
>>>Can someone help me?
>>>
>>> Thanks a lot,
>>>
>>>Sergiu
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
|