You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alessandro Dionisi (JIRA)" <ji...@codehaus.org> on 2010/07/02 18:07:33 UTC

[jira] Created: (SUREFIRE-626) Referencing a path already defined as Maven property in , creates a bad path

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

        

[jira] Updated: (SUREFIRE-626) Referencing a path already defined as Maven property in , creates a bad path

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ 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

        

[jira] Closed: (SUREFIRE-626) Referencing a path already defined as Maven property in , creates a bad path

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-626.
---------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Kristian Rosenvold

I am unable to reproduce this issue using mvn 2.2.1 & 3.0.1 on windows XP SP3, using any recent version of surefire >2.4.1. Please feel free to re-open if more details are available. I also have attached an isolated testcase to this issue if you want to try to reproduce it locally. Please update test-case  if you want this reopened.

> 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