[
http://jira.codehaus.org/browse/MCLEAN-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann updated MCLEAN-29:
------------------------------------
Description:
For example you want to delete content of folder but want to keep folder itself
and it's SCM (e.g. SVN) information. Following configuration for
"maven-maven-clean" plugin deletes all plain files under ".svn" directory and
simply keeps empty subdirs. Thus, making update command impossible.
{code:xml}
<build>
...
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<verbose>true</verbose>
<filesets>
<fileset>
<directory>logic/src/test/generated/resources</directory>
<excludes>
<exclude>.svn/**/*</exclude>
</excludes>
<includes>
<include>**/*</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
{code}
was:
For example you want to delete content of folder but want to keep folder itself
and it's SCM (e.g. SVN) information. Following configuration for
"maven-maven-clean" plugin deletes all plain files under ".svn" directory and
simply keeps empty subdirs. Thus, making update command impossible.
<build>
...
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<verbose>true</verbose>
<fileset>
<directory>logic/src/test/generated/resources
</directory>
<excludes>
<exclude>.svn/**/*</exclude>
</excludes>
<includes>
<include>**/*</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
> Maven clean plugin doesn't filter resources from exclude list
> -------------------------------------------------------------
>
> Key: MCLEAN-29
> URL: http://jira.codehaus.org/browse/MCLEAN-29
> Project: Maven 2.x Clean Plugin
> Issue Type: Bug
> Reporter: Vladimir Sosnin
> Attachments: clean-exclude.zip, dont-delete-excluded-file-test.patch,
> dont-delete-excluded-file.patch
>
>
> For example you want to delete content of folder but want to keep folder
> itself and it's SCM (e.g. SVN) information. Following configuration for
> "maven-maven-clean" plugin deletes all plain files under ".svn" directory and
> simply keeps empty subdirs. Thus, making update command impossible.
> {code:xml}
> <build>
> ...
> <plugins>
> <plugin>
> <artifactId>maven-clean-plugin</artifactId>
> <configuration>
> <verbose>true</verbose>
> <filesets>
> <fileset>
> <directory>logic/src/test/generated/resources</directory>
> <excludes>
> <exclude>.svn/**/*</exclude>
> </excludes>
> <includes>
> <include>**/*</include>
> </includes>
> <followSymlinks>false</followSymlinks>
> </fileset>
> </filesets>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira