[
https://jira.codehaus.org/browse/MCLEAN-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=319748#comment-319748
]
Peter B. commented on MCLEAN-53:
--------------------------------
OK, my wrong, I'm supposed to use:
{code}
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<fileset>
<directory>./</directory>
<includes>
<include>deleteme/**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
{code}
> directory (specified in the <includes> section) not removed if it's not empty
> -----------------------------------------------------------------------------
>
> Key: MCLEAN-53
> URL: https://jira.codehaus.org/browse/MCLEAN-53
> Project: Maven 2.x Clean Plugin
> Issue Type: Bug
> Affects Versions: 2.4, 2.4.1, 2.5
> Environment: fedora 17, 64bit
> java -version:
> java version "1.7.0_09"
> Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
> mvn --version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.7.0_09
> Java home: /usr/java/jdk1.7.0_09/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "3.6.8-2.fc17.x86_64" arch: "amd64" Family: "unix"
> Reporter: Peter B.
> Fix For: 2.5
>
> Attachments: sample.zip
>
>
> in case of following configuration:
> {code:xml}
> <plugin>
> <artifactId>maven-clean-plugin</artifactId>
> <version>2.5</version>
> <configuration>
> <filesets>
> <fileset>
> <directory>./</directory>
> <includes>
> <include>deleteme</include>
> </includes>
> </fileset>
> </filesets>
> </configuration>
> </plugin>
> {code}
> and having directory structure like this:
> {code}
> deleteme/i_prevent_deletion.txt
> pom.xml
> {code}
> directory deleteme won't be deleted. If the i_prevent_deletion.txt file is
> removed, all works.
> Problematic behavior doesn't seem to be working since 2.4 version.
> However for 2.3 version it works OK.
> Usage of the <includes> section is critical here, because in our real world
> application we don't have single directory, but rather multilevel directory
> structure and we use * in the includes (this could not be achieved by the
> <directory> only as far as I know).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira