Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Extract certificate extraction utility out into a separate project an…
…d replace it in this project by the corresponding built .jar file.
- Loading branch information
Showing
4 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/perl -w | ||
|
||
# | ||
# Simplified access to the ExtractCert utility. | ||
# | ||
|
||
# | ||
# extractCertCall | ||
# | ||
# Provides the stem of a "system" call string to access ExtractCert with the | ||
# required extensions. | ||
# | ||
sub extractCertCall | ||
{ | ||
my $extractCertRoot = "../tools/extractcert"; | ||
|
||
my $res = "java"; | ||
|
||
# Classpath | ||
my $classpath = ''; | ||
while (glob "$extractCertRoot/lib/*") { | ||
$classpath .= ':' unless $classpath eq ''; | ||
$classpath .= $_; | ||
} | ||
|
||
$res .= " -cp $classpath"; | ||
|
||
# Class to invoke | ||
$res .= " uk.ac.sdss.extractcert.ExtractCert"; | ||
$res; | ||
} | ||
|
||
print ">>>" . extractCertCall . "<<<\n"; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.