You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matt Bishop (JIRA)" <ji...@codehaus.org> on 2007/01/24 20:12:27 UTC
[jira] Commented: (MCOMPILER-51) incorrectly
evaluates ${project.build.directory} as current-dir relative
[ http://jira.codehaus.org/browse/MCOMPILER-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85931 ]
Matt Bishop commented on MCOMPILER-51:
--------------------------------------
I meant to say:
<outputDirectory>/Volumes/RamDisk/target/classes</outputDirectory>
Correctly sends...
> <outputDirectory> incorrectly evaluates ${project.build.directory} as current-dir relative
> ------------------------------------------------------------------------------------------
>
> Key: MCOMPILER-51
> URL: http://jira.codehaus.org/browse/MCOMPILER-51
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Environment: Mac OS X 10.4.8, JDK 1.5.0_06
> Reporter: Matt Bishop
> Priority: Minor
>
> This affects 2.0.4, I have not tested on other versions.
> If a pom.xml's ${project.build.directory} is set to an absolute path and the same pom.xml's project/build/outputDirectory references this property, the compiler sends built classes to a path relative to the current dir. However, if the outputDirectory property is hard-coded to the absolute path, then the build classes are properly dropped in the absolute path. Example:
> <build>
> <directory>/Volumes/RamDisk/target</directory>
> <outputDirectory>${project.build.directory}/classes</outputDirectory>
> Incorrectly sends javac output to /Users/matt/myProject/Volumes/RamDisk/target/classes
> However:
> <build>
> <directory>/Volumes/RamDisk/target</directory>
> <outputDirectory>${project.build.directory}/classes</outputDirectory>
> Correctly sends javac output to /Volumes/RamDisk/target/classes
> As a note, other users of an absolute ${project.build.directory} handle the path correctly, such as the maven-war-plugin.
--
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