You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andy Piper (JIRA)" <ji...@codehaus.org> on 2007/02/05 18:04:44 UTC

[jira] Commented: (MRESOURCES-35) targetPath doesn't accept absolute paths

    [ http://jira.codehaus.org/browse/MRESOURCES-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86849 ] 

Andy Piper commented on MRESOURCES-35:
--------------------------------------

I see this problem also in 2.0.4. Its very annoying.

> targetPath doesn't accept absolute paths
> ----------------------------------------
>
>                 Key: MRESOURCES-35
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-35
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: linux, windows
>            Reporter: Paul Jungwirth
>            Priority: Minor
>         Attachments: absolute-resource-outputs.patch
>
>
> <targetPath> is always relative to target/classes, even if you pass it an absolute path. This happens if the path is from a variable, like this:
>   <targetPath>${basedir}/scripts</targetPath>
> It also happens if you write the path directly:
>   <targetPath>/home/pjungwir/src/encc/scripts</targetPath>
> or on windows:
>   <targetPath>C:/home/pjungwir/src/encc/scripts</targetPath>
> Your resources wind up in directories like this:
>   /home/pjungwir/src/encc/target/classes/home/pjungwir/src/encc/scripts

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