[
https://issues.apache.org/jira/browse/MCLEAN-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958683#comment-17958683
]
Olivier Lamy commented on MCLEAN-53:
------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-clean-plugin#169|https://github.com/apache/maven-clean-plugin/issues/169].
> directory (specified in the <includes> section) not removed if it's not empty
> -----------------------------------------------------------------------------
>
> Key: MCLEAN-53
> URL: https://issues.apache.org/jira/browse/MCLEAN-53
> Project: Maven Clean Plugin (Moved to GitHub Issues)
> 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 Butkovic
> Priority: Major
> 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 was sent by Atlassian Jira
(v8.20.10#820010)