You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2012/06/21 10:20:46 UTC

svn commit: r1352447 - in /maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166: verify.bsh verify.groovy

Author: olamy
Date: Thu Jun 21 08:20:45 2012
New Revision: 1352447

URL: http://svn.apache.org/viewvc?rev=1352447&view=rev
Log:
using a groovy script is more smaller code to maintain

Added:
    maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy   (with props)
Removed:
    maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.bsh

Added: maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy?rev=1352447&view=auto
==============================================================================
--- maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy (added)
+++ maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy Thu Jun 21 08:20:45 2012
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+assert new File(basedir, 'target/classes/resource.txt').exists();
+
+filteredContent = new File(basedir, 'target/classes/resource.txt').text;
+assert filteredContent.contains( 'fileValue=${foo.file}');
+assert filteredContent.contains( 'export SERVER_ENV=${SERVER_ENV:sandbox}');
+
+return true;
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-resources-plugin/src/it/MRESOURCES-166/verify.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision