You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2012/05/16 20:28:18 UTC

svn commit: r1339305 - in /maven/plugins/trunk/maven-clean-plugin/src/it/special-characters: ./ pom.xml target/ target/Conditions_générales_d'isalaire.txt target/Pepé le Pew/ verify.bsh

Author: rfscholte
Date: Wed May 16 18:28:18 2012
New Revision: 1339305

URL: http://svn.apache.org/viewvc?rev=1339305&view=rev
Log:
IT for MCLEAN-48: Failure cleaning files containing special characters

Added:
    maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/
    maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/pom.xml
    maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/target/
    maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/target/Conditions_générales_d'isalaire.txt
    maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/target/Pepé le Pew/
    maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/verify.bsh

Added: maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/pom.xml?rev=1339305&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/pom.xml (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/pom.xml Wed May 16 18:28:18 2012
@@ -0,0 +1,48 @@
+<?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.clean.its</groupId>
+  <artifactId>mrelease-48</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test for clean</name>
+  <description>Check for proper cleaning of default output files.</description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-clean-plugin</artifactId>
+        <version>@pom.version@</version>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Added: maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/target/Conditions_générales_d'isalaire.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/target/Conditions_g%C3%A9n%C3%A9rales_d%27isalaire.txt?rev=1339305&view=auto
==============================================================================
    (empty)

Added: maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/verify.bsh?rev=1339305&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/verify.bsh (added)
+++ maven/plugins/trunk/maven-clean-plugin/src/it/special-characters/verify.bsh Wed May 16 18:28:18 2012
@@ -0,0 +1,23 @@
+import java.io.*;
+import java.util.*;
+import java.util.jar.*;
+import java.util.regex.*;
+
+try
+{
+	// this confirms that special character file and directory are deleted 
+    File targetDir = new File( basedir, "target" );
+    if ( targetDir.exists() )
+    {
+        System.out.println( "FAILURE!  target must not exist" );
+        return false;
+    }
+
+}
+catch( Throwable t )
+{
+    t.printStackTrace();
+    return false;
+}
+
+return true;