maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joakim Erdfelt (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-2671) Parent/modules relative file path compression
Date Wed, 31 Jan 2007 13:34:44 GMT

    [ http://jira.codehaus.org/browse/MNG-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86391
] 

Joakim Erdfelt commented on MNG-2671:
-------------------------------------

.getCanonicalPath() can see thru a symbolic link.  We need to be careful on how we use this
information to not circumvent or undo symlinks that have been created by the user and/or system
admin.

> Parent/modules relative file path compression
> ---------------------------------------------
>
>                 Key: MNG-2671
>                 URL: http://jira.codehaus.org/browse/MNG-2671
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.4
>         Environment: Windows XP
>            Reporter: Vincent Beretti
>            Priority: Minor
>         Attachments: MNG-2671-maven-project.patch
>
>
> Sometimes a problem appears in M2 with parent and module structure due to
> the OS limitation in filepath length.
> For example Windows file path can not exceed 255 characters.
> But in complex maven 2 structure of parent/modules we can encounter a
> problem with that.
> In Eclipse, one has to put children projects in a flat structure.
> Example :
> in my filesystem my projects are :
> C:/
> |------ parentProject/
> |------ childprojectA/
> |------ childProjectB/
> But in maven the structure is as following :
> parentProject
> |------ childProjectA
> |------ childProjectB
> So in childProjectX poms, I have to references parent project like this :
> <relativePath>../parentProject</relativePath> and the same for modules in
> parent as <modules><module>../parentProject</module></modules>
> On a very complex structure, I have a path longer than 255 but in fact i
> could be compressed to remove ..
> for example when maven deletes target dir, it does like this :
> delete C:/parentProject/../childProjectA/target
> instead it could do
> delete C:/childProjectA.
> This would reduce the path length in very complex structures.
> See the post at : http://www.nabble.com/Parent-modules-File-path-compression-tf2628075s177.html

-- 
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

        

Mime
View raw message