You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sc...@apache.org on 2016/12/30 02:44:58 UTC
svn commit: r1776515 - in /maven/shared/trunk/maven-invoker/src/test:
java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
resources/test-space-and-special-char-pom/
resources/test-space-and-special-char-pom/pom with spaces & special char.xml
Author: schulte
Date: Fri Dec 30 02:44:58 2016
New Revision: 1776515
URL: http://svn.apache.org/viewvc?rev=1776515&view=rev
Log:
o Updated to add a test verifying invocations in directories with spaces and special chars are working (Windows).
Added:
maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/
maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom with spaces & special char.xml (with props)
Modified:
maven/shared/trunk/maven-invoker/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
Modified: maven/shared/trunk/maven-invoker/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-invoker/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java?rev=1776515&r1=1776514&r2=1776515&view=diff
==============================================================================
--- maven/shared/trunk/maven-invoker/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java (original)
+++ maven/shared/trunk/maven-invoker/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java Fri Dec 30 02:44:58 2016
@@ -113,6 +113,33 @@ public class DefaultInvokerTest
}
@Test
+ public void testSpaceAndSpecialCharPom()
+ throws Exception
+ {
+ logTestStart();
+
+ File basedir = getBasedirForBuild();
+
+ Invoker invoker = newInvoker();
+
+ InvocationRequest request = new DefaultInvocationRequest();
+ request.setBaseDirectory( basedir );
+
+ request.setPomFileName( "pom with spaces & special char.xml" );
+
+ request.setDebug( true );
+
+ List<String> goals = new ArrayList<String>();
+ goals.add( "clean" );
+
+ request.setGoals( goals );
+
+ InvocationResult result = invoker.execute( request );
+
+ assertEquals( 0, result.getExitCode() );
+ }
+
+ @Test
public void testSpaceSettings()
throws Exception
{
Added: maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom with spaces & special char.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom%20with%20spaces%20%26%20special%20char.xml?rev=1776515&view=auto
==============================================================================
--- maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom with spaces & special char.xml (added)
+++ maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom with spaces & special char.xml Fri Dec 30 02:44:58 2016
@@ -0,0 +1,27 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.shared.invoker</groupId>
+ <artifactId>test-space-and-special-char-pom</artifactId>
+ <packaging>jar</packaging>
+ <version>1</version>
+</project>
Propchange: maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom with spaces & special char.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-invoker/src/test/resources/test-space-and-special-char-pom/pom with spaces & special char.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml