utility classes used in build.xml, and a dodgy perl script for
authorjprocter <Jim Procter>
Thu, 31 Mar 2005 10:01:04 +0000 (10:01 +0000)
committerjprocter <Jim Procter>
Thu, 31 Mar 2005 10:01:04 +0000 (10:01 +0000)
removing the signatures from jars.

utils/jarunsigner.pl [new file with mode: 0755]
utils/jhall.jar [new file with mode: 0755]
utils/roxes-ant-tasks-1.2-2004-01-30.jar [new file with mode: 0755]

diff --git a/utils/jarunsigner.pl b/utils/jarunsigner.pl
new file mode 100755 (executable)
index 0000000..f18f94c
--- /dev/null
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+use strict;
+
+# perverse script to get rid of unwanted jar signatures
+use Cwd qw(abs_path);
+use File::Temp qw(tempdir);
+
+my $tempdir = tempdir( CLEANUP => 1);
+
+my $jarfile;
+
+my @jarfiles;
+
+while (scalar @ARGV) {
+    my $jarfile = shift @ARGV;
+    ((-f $jarfile) and $jarfile=~/.+\.jar/) 
+        and push @jarfiles, abs_path($jarfile);
+}
+my $pwdir = `pwd`;
+chdir($tempdir);
+
+while (scalar @jarfiles) {
+    $jarfile = shift @jarfiles;
+    system("rm -Rf *");
+    system("jar xf $jarfile");
+    system("mv $jarfile $jarfile.bak");
+    system("rm META-INF/*.SF");
+    system("rm META-INF/*.RSA");
+    system("jar cf $jarfile *");
+}
+
+chdir($pwdir);
diff --git a/utils/jhall.jar b/utils/jhall.jar
new file mode 100755 (executable)
index 0000000..6b894bc
Binary files /dev/null and b/utils/jhall.jar differ
diff --git a/utils/roxes-ant-tasks-1.2-2004-01-30.jar b/utils/roxes-ant-tasks-1.2-2004-01-30.jar
new file mode 100755 (executable)
index 0000000..8b09fa6
Binary files /dev/null and b/utils/roxes-ant-tasks-1.2-2004-01-30.jar differ