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