Modified the way MANIFEST.MF file was being generated. I now use perl

to open a file and write to it instead of execing a system command.
This is in response to build failure when rsh to a Windows machine.
This commit is contained in:
sandeep.konchady%sun.com 2005-05-18 22:18:15 +00:00
Родитель 613e40a79e
Коммит 73047c5d9c
1 изменённых файлов: 23 добавлений и 9 удалений

Просмотреть файл

@ -167,15 +167,29 @@ sub build {
chop($jss_revision);
$jss_revision = substr($jss_revision, 22, 3);
my $build_revision = $jss_revision;
system("echo \"Manifest-Version: 1.0\" > $manifest_file");
system("echo \"\" >> $manifest_file");
system("echo \"Name: org/mozilla/jss/\" >> $manifest_file");
system("echo \"Specification-Title: Network Security Services for Java (JSS)\" >> $manifest_file");
system("echo \"Specification-Version: $jss_revision\" >> $manifest_file");
system("echo \"Specification-Vendor: Mozilla Foundation\" >> $manifest_file");
system("echo \"Implementation-Title: org.mozilla.jss\" >> $manifest_file");
system("echo \"Implementation-Version: $build_revision\" >> $manifest_file");
system("echo \"Implementation-Vendor: Mozilla Foundation\" >> $manifest_file");
$append = 0;
if ($append) {
open(MYOUTFILE, ">MANIFEST.MF"); #open for write, overwrite
} else {
open(MYOUTFILE, ">>MANIFEST.MF"); #open for write, append
}
#*** Print freeform text, semicol required ***
print MYOUTFILE <<"MyLabel";
Manifest-Version: 1.0
Name: org/mozilla/jss/
Specification-Title: Network Security Services for Java (JSS)
Specification-Version: $jss_revision
Specification-Vendor: Mozilla Foundation
Implementation-Title: org.mozilla.jss
Implementation-Version: $build_revision
Implementation-Vendor: Mozilla Foundation
MyLabel
#*** Close the file ***
close(MYOUTFILE);
#
# recursively find *.java