[ https://jira.codehaus.org/browse/MASSEMBLY-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358688#comment-358688 ]
Kristian Rosenvold commented on MASSEMBLY-665: ---------------------------------------------- Small test project added in r1643348. The descriptor implies that there is content residing outside the project that you want to include. In the test project, I point to /src/test/java/test/fzz.txt . If that file exists (mounted at /src on the root file system), the archive will be created. So this is a legal descriptor on *nix. On windows one would be tempted to remap such a descriptor to point to something from the root of the current drive. Option 2 is not good,it'd change existing behaviour too much. I kind of fancy option 3; if there's a leading slash or any kind of windows-mannerisms in the path we should give a warning of a non-portable build. > OS dependent behaviour while packaging > -------------------------------------- > > Key: MASSEMBLY-665 > URL: https://jira.codehaus.org/browse/MASSEMBLY-665 > Project: Maven Assembly Plugin > Issue Type: Bug > Affects Versions: 2.4 > Environment: sles 11 / windows 7 > Reporter: Jörg Sesterhenn > Fix For: 2.5.3 > > > Given this part of a assembly descriptor: > {code} > <fileSets> > <fileSet> > <directory>src/main/script</directory> > <outputDirectory>bin</outputDirectory> > <filtered>true</filtered> > <includes> > <include>*</include> > </includes> > </fileSet> > <fileSet> > <directory>/src/main/conf</directory> > <outputDirectory>conf</outputDirectory> > <includes> > <include>*</include> > </includes> > </fileSet> > </fileSets> > {code} > Under windows 7 this packages everything as (I) expected: > {code} > src/ > main/ > conf/ > script/ > {code} > > Under linux the package misses the directory 'conf': > {code} > src/ > main/ > script/ > {code} > Linux seems to interpret the directory as absolute path due to the leading > slash. > Please either > * accept the above config and build the same package on any system, or > * fail the build with an invalid descriptor error, or > * (at least) log a warning that due to the config builds are depending on the > OS. -- This message was sent by Atlassian JIRA (v6.1.6#6162)