You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2011/01/04 22:35:58 UTC
[jira] Updated: (SUREFIRE-626) Referencing a path already defined
as Maven property in , creates a bad path
[ http://jira.codehaus.org/browse/SUREFIRE-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-626:
----------------------------------------
Attachment: surefire-626-tc.patch
The attached patch contains a test-project that may be used to try to reproduce the issue.
> Referencing a path already defined as Maven property in <environmentVariables>, creates a bad path
> --------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-626
> URL: http://jira.codehaus.org/browse/SUREFIRE-626
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.5
> Environment: Windows XP SP3
> Reporter: Alessandro Dionisi
> Assignee: Kristian Rosenvold
> Attachments: surefire-626-tc.patch
>
>
> I have this profile specified in my pom.xml:
> {code:xml}
> <profile>
> <id>test</id>
> <properties>
> <auditing.home>${basedir}/configs/test</auditing.home>
> </properties>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.4.2</version>
> <configuration>
> <environmentVariables>
> <auditing.home>${auditing.home}</auditing.home>
> </environmentVariables>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </profile>
> {code}
> This configuration generates a bad path on windows (and an exception while loading a file):
> Could not load properties; nested exception is java.io.FileNotFoundException: \V\:\DebugWorkspace\AuditingWebService\AuditingWebService-webapp\configs\test\hibernate.properties (The filename, directory name, or volume label syntax is incorrect)
> instead of the correct: V:\DebugWorkspace\AuditingWebService\AuditingWebService-webapp\configs\test\hibernate.properties
> I tried with (with ${auditing.home2} insteand ${auditing.home})
> {code:xml}
> <profile>
> <id>test</id>
> <properties>
> <auditing.home2>${basedir}/configs/test</auditing.home>
> </properties>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.4.2</version>
> <configuration>
> <environmentVariables>
> <auditing.home>${auditing.home2}</auditing.home>
> </environmentVariables>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </profile>
> {code}
> and it works correctly.
--
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