Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352755

Summary: tycho-p2-extras-plugin has problems with spaces in folder names on Windows
Product: z_Archived Reporter: Krum Tsvetkov <krum.tsvetkov>
Component: TychoAssignee: Jan Sievers <jan.sievers>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan.sievers, markward.schubert
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Krum Tsvetkov CLA 2011-07-21 09:58:56 EDT
While trying to setup a Tycho build for the Gemini JPA project (bug 344926) I encountered the following problem - if the folder of the path to the project contains spaces in the name, then the tycho-p2-extras-plugin creates the repository in the wrong folder - in a folder having %20 in the name.

Here is how to reproduce:

1) create a pom.xml with the following content into a folder named "c:\bug repro"

<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.eclipse</groupId>
	<artifactId>prepareBuild</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<packaging>pom</packaging>

	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-p2-extras-plugin</artifactId>
				<version>0.12.0</version>
				<executions>
					<execution>
						<phase>prepare-package</phase>
						<goals>
							<goal>publish-features-and-bundles</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<compress>false</compress>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

2) create the folder "c:\bug repro\target\plugins\source" and put an arbitrary jar file inside

3) go back to "c:\bug repro" and run "mvn install" in it

==> a folder "c:\bug%20repro" is created and the repository is stored inside

Can you, please, have a look at this and fix it?