The following comment has been added to this issue: Author: Brett Porter Created: Thu, 14 Aug 2003 6:06 PM Body: finished in my check out, will commit soon. All paths are relative to project.xml, but can be absolute (so basedir is also allowed). Had to fix the inheritence unit tests that abused the broken basedir in extend :)
Still have to go through some of the plugins and check the usage is ok. A tag will be present for use in maven.xml where you need a relative path: <maven:makePathRelative var="relativePath" basedir="${basedir}" path="${pom.build.sourceDirectory}"/> will set relativePath to src/java, otherwise you will get back ${basedir}/src/java <maven:makePathAbsolute var="absolutePath" basedir="${basedir}" path="${somePath}"/> will return ${basedir}/${somePath} if somePath was relative, or ${somePath} if it was already absolute --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-522 Here is an overview of the issue: --------------------------------------------------------------------- Key: MAVEN-522 Summary: Clarification of POM elements that use paths. Type: Task Status: Unassigned Priority: Major Time Spent: Unknown Remaining: Unknown Project: maven Fix Fors: 1.0-rc1 Assignee: Reporter: Jason van Zyl Created: Sat, 28 Jun 2003 8:13 AM Updated: Mon, 28 Jul 2003 11:11 AM Description: Currently there are several elements in the POM that use paths in order to find various resources. The currently accepted pattern is to use ${basedir} as a prefix for all these paths so that they work in the reactor environment. We can certainly identify all the elements in the POM that are path related. We need to decide whether to mandate the use of ${basedir} or make it implicit in POM elements that store paths. Once this is decided the plugins all need to be audited to ensure they follow the pattern we mandate. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]