Community
Participate
Working Groups
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?
https://github.com/sonatype/tycho-extras/commit/aab048852b9d27ad9031b32f64893883922e0492