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 2019/03/25 20:47:44 UTC

[maven-gpg-plugin] branch MGPG-69 created (now 11cbce3)

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a change to branch MGPG-69
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git.


      at 11cbce3  [MGPG-69] prepare groovy script

This branch includes the following new commits:

     new 11cbce3  [MGPG-69] prepare groovy script

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-gpg-plugin] 01/01: [MGPG-69] prepare groovy script

Posted by rf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MGPG-69
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git

commit 11cbce3213218999aad71373c9215a6633ebc85b
Author: rfscholte <rf...@apache.org>
AuthorDate: Mon Mar 25 21:47:34 2019 +0100

    [MGPG-69] prepare groovy script
---
 src/it/sign-release/{verify.bsh => verify.groovy} | 24 ++++++++++-------------
 1 file changed, 10 insertions(+), 14 deletions(-)

diff --git a/src/it/sign-release/verify.bsh b/src/it/sign-release/verify.groovy
similarity index 70%
rename from src/it/sign-release/verify.bsh
rename to src/it/sign-release/verify.groovy
index 495669e..59f7453 100644
--- a/src/it/sign-release/verify.bsh
+++ b/src/it/sign-release/verify.groovy
@@ -17,28 +17,24 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+ 
+import groovy.io.FileType
 
-import java.io.*;
+def buildLog = new File(basedir,'build.log')
+assert buildLog.text.contains('BUILD SUCCESS')
 
-File artifactDir = new File( localRepositoryPath, "org/apache/maven/its/gpg/sr/test/1.0" );
+def artifactDir = new File( localRepositoryPath, "org/apache/maven/its/gpg/sr/test/1.0" )
 
-String[] expectedFiles = {
+def expectedFiles = [
     "test-1.0.pom",
     "test-1.0.pom.asc",
     "test-1.0.jar",
     "test-1.0.jar.asc",
     "test-1.0-sources.jar",
     "test-1.0-sources.jar.asc",
-};
+] as Set
 
-for ( String expectedFile : expectedFiles )
-{
-    File file = new File( artifactDir, expectedFile );
+def actualFiles = [] as Set 
+artifactDir.eachFile(FileType.FILES) { actualFiles << it.name }
 
-    System.out.println( "Checking for existence of " + file );
-
-    if ( !file.isFile() )
-    {
-        throw new Exception( "Missing file " + file );
-    }
-}
+assert expectedFiles == (actualFiles - '_remote.repositories')
\ No newline at end of file