You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2016/03/27 15:44:25 UTC
[jira] [Commented] (MRESOURCES-205) Flag "includeEmptyDirs" is not
working if "targetPath" is specified on resource.
[ https://issues.apache.org/jira/browse/MRESOURCES-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15213467#comment-15213467 ]
Karl Heinz Marbaise commented on MRESOURCES-205:
------------------------------------------------
So i have taken the test project and run {{mvn clean test}} and got as result the following:
{code}
.
├── pom.xml
├── src
│ ├── main
│ │ ├── java
│ │ └── resources
│ │ ├── emptyDir
│ │ └── notEmptyDir
│ │ └── 1.txt
│ └── test
│ └── java
└── target
├── classes
│ ├── Users
│ │ └── kama
│ │ └── Downloads
│ │ └── test-includeEmptyDirs
│ │ └── target
│ │ └── distribution
│ │ ├── emptyDir
│ │ └── notEmptyDir
│ ├── emptyDir
│ └── notEmptyDir
│ └── 1.txt
└── distribution
└── notEmptyDir
└── 1.txt
{code}
So based on the given configuration it is exactly what i expected...
> Flag "includeEmptyDirs" is not working if "targetPath" is specified on resource.
> --------------------------------------------------------------------------------
>
> Key: MRESOURCES-205
> URL: https://issues.apache.org/jira/browse/MRESOURCES-205
> Project: Maven Resources Plugin
> Issue Type: Bug
> Components: copy
> Affects Versions: 2.7
> Reporter: Evgeniy Voroniuk
> Attachments: test-includeEmptyDirs.zip
>
>
> If we specify target path like
> {code:xml}
> <resource>
> <directory>src/main/resources</directory>
> <targetPath>${project.build.directory}/distribution</targetPath>
> </resource>
> {code}
> Then empty directories are not copied, even if flag "includeEmptyDirs" is set to "true"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)