You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Petar Tahchiev (JIRA)" <ji...@codehaus.org> on 2008/08/25 21:02:26 UTC
[jira] Commented: (MASSEMBLY-237) lineEnding ignored in a child
project
[ http://jira.codehaus.org/browse/MASSEMBLY-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145910#action_145910 ]
Petar Tahchiev commented on MASSEMBLY-237:
------------------------------------------
Hi Sergei and Todor,
If you are going to execute Maven from the parent then you should specify the full-path to your directory filesets. If you are going to execute Maven from the child module you can specify either relative or full-path to your directory fileset, like this:
<fileSet>
<!-- Copy Unix shell scripts, make sure that line ending is LF and an execution permission is set -->
<directory>/home/peter/workspace/test/module/src/main/bin</directory>
<outputDirectory>bin</outputDirectory>
<includes>
<include>*.sh</include>
<include>*.ksh</include>
<include>*.pl</include>
</includes>
<fileMode>0744</fileMode><!-- rwxr..r.. -->
<lineEnding>unix</lineEnding>
</fileSet>
You see how I have specified the complete path to the directory in my fileset?
In my opnion the maven-assembly should NOT be changed, but I provide a patch if anyone wants to change it. I just add the basedir property to your fileset directory property. In this case you have to specify the directory as relative path.
HTH, Petar.
> lineEnding ignored in a child project
> -------------------------------------
>
> Key: MASSEMBLY-237
> URL: http://jira.codehaus.org/browse/MASSEMBLY-237
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-1
> Environment: Windows Vista
> Reporter: Todor Todorov
> Priority: Minor
> Fix For: 2.2-beta-3
>
> Attachments: test.zip
>
>
> I have a parent project and a child project. The child project builds an assembly composed of text files.
> <fileSet>
> <outputDirectory>bin</outputDirectory>
> <directory>src/main/bin</directory>
> <lineEnding>unix</lineEnding>
> <includes>
> <include>*.sh</include>
> </includes>
> </fileSet>
> When I build the assembly from the child project , maven adds unix endings, but when I build it from the parent project, lineEnding is being ignored.
--
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