You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2015/03/21 21:58:02 UTC

svn commit: r1668319 - in /maven/plugins/trunk/maven-invoker-plugin/src/it: accénts-ñ-èê-should-work/ special-characters-should-work/ special-characters-should-work/src/ special-characters-should-work/src/it/ special-characters-should-work/src/it/m...

Author: khmarbaise
Date: Sat Mar 21 20:58:02 2015
New Revision: 1668319

URL: http://svn.apache.org/r1668319
Log:
[MINVOKER-184] Implement IT in an other way.
 Based on the suggestions of Robert Scholte and Olivier Lamy
 the integration test now creates the folder during the test
 instead of checking in the folder with the special characters.
 This will prevent issues with versions control systems.

Added:
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/invoker.properties
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/pom.xml
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/setup.groovy
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/invoker.properties
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml
    maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/verify.groovy
Removed:
    maven/plugins/trunk/maven-invoker-plugin/src/it/accénts-ñ-èê-should-work/

Added: maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/invoker.properties?rev=1668319&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/invoker.properties (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/invoker.properties Sat Mar 21 20:58:02 2015
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = clean verify

Added: maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/pom.xml?rev=1668319&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/pom.xml (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/pom.xml Sat Mar 21 20:58:02 2015
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.plugins.invoker.its</groupId>
+  <artifactId>accents-debug</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <description>
+    Test to check for usage of accents in folder names.
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-invoker-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <goals>
+            <goal>validate</goal>
+          </goals>
+          <debug>false</debug>
+          <postBuildHookScript>verify</postBuildHookScript>
+        </configuration>
+        <executions>
+          <execution>
+            <id>integration-test</id>
+            <phase>initialize</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Added: maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/setup.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/setup.groovy?rev=1668319&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/setup.groovy (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/setup.groovy Sat Mar 21 20:58:02 2015
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ */
+
+import java.io.*
+import java.util.*
+import java.util.regex.*
+
+File srcIt = new File (basedir, "src/it");
+File originalFolder = new File (srcIt, "minvoker-test");
+File destinationFolder = new File(srcIt, "test-\u00c9\u00e9\u00ea-more-\u00c9\u00e9\u00ea-test");
+// rename old one into new one with special characters.
+if (!originalFolder.renameTo(destinationFolder)) {
+  throw new IOException("Rename didn't work.")
+}

Added: maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/invoker.properties?rev=1668319&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/invoker.properties (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/invoker.properties Sat Mar 21 20:58:02 2015
@@ -0,0 +1,19 @@
+# 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.
+
+invoker.debug = true
+invoker.goals = clean verify

Added: maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml?rev=1668319&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml Sat Mar 21 20:58:02 2015
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.plugins.invoker.its</groupId>
+  <artifactId>minvoker-142</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.1.1</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <AlwaysPass/>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/verify.groovy?rev=1668319&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/verify.groovy (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/special-characters-should-work/src/it/minvoker-test/verify.groovy Sat Mar 21 20:58:02 2015
@@ -0,0 +1,20 @@
+/*
+ * 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.
+ */
+File buildLog = new File( basedir, 'build.log' )
+assert buildLog.text.contains( '[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.AlwaysPass' )  
\ No newline at end of file