[ http://jira.codehaus.org/browse/MNG-1345?page=comments#action_49466 ]
Edwin Punzalan commented on MNG-1345: ------------------------------------- Hi, what version are you using? I can't seem to reproduce this bug using your submitted configuration. Also, since it works on Windows, could the problem be regarding your write permissions on Unix ? I did check the code and found that mkdirs() is not being check if it returned true/false, but that's another issue. ^_^ > "No such file or directory" when resource targetdirectory contains "../" and > target/classes does not exist. > ----------------------------------------------------------------------------------------------------------- > > Key: MNG-1345 > URL: http://jira.codehaus.org/browse/MNG-1345 > Project: Maven 2 > Type: Bug > Components: maven-resources-plugin > Versions: 2.0 > Environment: Linux fails, Windows is fine. > Reporter: Mark Donszelmann > Assignee: Edwin Punzalan > Priority: Minor > Fix For: 2.0.1 > > > "No such file or directory" when resource targetdirectory contains "../" and > target/classes does not exist. > example: > <resource> > <targetPath>../generated-sources/filter</targetPath> > <filtering>true</filtering> > <directory>${basedir}/src/main/java</directory> > <includes> > <include>**/*</include> > </includes> > </resource> > since the targetdirectory is relative to "target/classes" (or whatever the > setting is to put the class files) > the plugin fails with a > "No such file or directory: > ....target/classes/../generated-sources/filter/....." > if target/classes does not exist. > On Windows it works fine, on Unix it fails. > Workaround: copy some resources to target/classes first, so that > target/classes exists. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
