You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by an...@apache.org on 2013/02/13 13:36:05 UTC

svn commit: r1445571 - /maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy

Author: andham
Date: Wed Feb 13 12:36:05 2013
New Revision: 1445571

URL: http://svn.apache.org/r1445571
Log:
Added IT setup script which cleans any already created project

Added:
    maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy   (with props)

Added: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy?rev=1445571&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy Wed Feb 13 12:36:05 2013
@@ -0,0 +1,24 @@
+
+/*
+ * 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.
+ */
+
+// We can't run "mvn clean" as there is no pom. So we need to remove any already
+// created project before executing.
+directory = new File(basedir, "project")
+directory.deleteDir()

Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/setup.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision