aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r1084292 - in /aries/scripts: download_release_artifacts.pl list_bundles_in_aries.pl
Date Tue, 22 Mar 2011 18:40:04 GMT
Author: zoe
Date: Tue Mar 22 18:40:03 2011
New Revision: 1084292

URL: http://svn.apache.org/viewvc?rev=1084292&view=rev
Log:
tidying up

Modified:
    aries/scripts/download_release_artifacts.pl
    aries/scripts/list_bundles_in_aries.pl

Modified: aries/scripts/download_release_artifacts.pl
URL: http://svn.apache.org/viewvc/aries/scripts/download_release_artifacts.pl?rev=1084292&r1=1084291&r2=1084292&view=diff
==============================================================================
--- aries/scripts/download_release_artifacts.pl (original)
+++ aries/scripts/download_release_artifacts.pl Tue Mar 22 18:40:03 2011
@@ -3,11 +3,19 @@
 # Generate a script to download release artifacts.
 #
 
+$release_file = @ARGV[0];
+
+if (!-f $release_file) {
+        print "\nUsage: perl download_release_artifacts.pl aries_release_versions.txt \n\n";
+            exit;
+}
+
+
 $from_repository = "https://repository.apache.org/content/repositories/releases/org/apache/aries";
 
 $oaa = "org.apache.aries";
 
-open (MOD, "aries_release_versions.txt");
+open (MOD, $release_file);
 
 while (<MOD>) {
     if (/Module: (\w+)/i) {

Modified: aries/scripts/list_bundles_in_aries.pl
URL: http://svn.apache.org/viewvc/aries/scripts/list_bundles_in_aries.pl?rev=1084292&r1=1084291&r2=1084292&view=diff
==============================================================================
--- aries/scripts/list_bundles_in_aries.pl (original)
+++ aries/scripts/list_bundles_in_aries.pl Tue Mar 22 18:40:03 2011
@@ -7,10 +7,11 @@ use File::Find;
 
 
 $aries_dir = @ARGV[0];
+if (defined @ARGV[1]) {$version = ",".@ARGV[1];}
 
 if (!-d $aries_dir) {
-    print "Usage: perl list_bundles_in_aries.pl source_dir \n";
-    die;
+    print "\nUsage: perl list_bundles_in_aries.pl source_dir <optional version number>\n";
+    exit;
 }
 
 chdir $aries_dir;
@@ -20,7 +21,6 @@ chdir $aries_dir;
 @modules = (
            "application",
            "blueprint",
-           "eba-maven-plugin",
            "jmx",
            "jndi",
            "jpa",
@@ -44,7 +44,7 @@ foreach $module (@modules) {
           }
       }
       foreach $bundle (@bundles) {
-        print $bundle."\n";
+        print $bundle.$version."\n";
       }
       print "ModuleEnd\n";
 }



Mime
View raw message