You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2012/07/25 22:08:33 UTC
svn commit: r1365711 - in
/creadur/whisker/trunk/apache-whisker-plugin4maven: pom.xml
src/it/third-party/verify.bsh src/it/third-party/verify.groovy
Author: rdonkin
Date: Wed Jul 25 20:08:32 2012
New Revision: 1365711
URL: http://svn.apache.org/viewvc?rev=1365711&view=rev
Log:
More concise scripting using Groovy
Added:
creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.groovy
- copied, changed from r1365273, creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.bsh
Removed:
creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.bsh
Modified:
creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml
Modified: creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml
URL: http://svn.apache.org/viewvc/creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml?rev=1365711&r1=1365710&r2=1365711&view=diff
==============================================================================
--- creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml (original)
+++ creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml Wed Jul 25 20:08:32 2012
@@ -103,7 +103,7 @@
</pomIncludes>
<settingsFile>src/it/settings.xml</settingsFile>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
- <postBuildHookScript>verify.bsh</postBuildHookScript>
+ <postBuildHookScript>verify</postBuildHookScript>
</configuration>
<executions>
<execution>
Copied: creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.groovy (from r1365273, creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.bsh)
URL: http://svn.apache.org/viewvc/creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.groovy?p2=creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.groovy&p1=creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.bsh&r1=1365273&r2=1365711&rev=1365711&view=diff
==============================================================================
--- creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.bsh (original)
+++ creadur/whisker/trunk/apache-whisker-plugin4maven/src/it/third-party/verify.groovy Wed Jul 25 20:08:32 2012
@@ -17,18 +17,9 @@
* under the License.
*/
-import java.io.*;
+assert !new File(basedir, "target/NOTICE").exists()
- File license = new File(basedir, "target/LICENSE");
- File notice = new File(basedir, "target/NOTICE");
-
- if (notice.exists()) {
- throw new RuntimeException("NOTICE unexpectedly generated");
- }
- if (license.exists()) {
-
- } else {
- throw new FileNotFoundException("LICENSE missing");
- }
+def license = new File(basedir, "target/LICENSE")
+assert license.exists()
return true;
\ No newline at end of file