Include shared Java libraries.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@532 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -62,6 +62,14 @@ if (opendir(DIR, "$root/lib")) {
|
||||
closedir DIR;
|
||||
}
|
||||
|
||||
# any zip or jar files in our lib/ directory get added to the class path
|
||||
if (opendir(DIR, "/usr/share/java")) {
|
||||
foreach $lib (grep { /.(zip|jar)/ && -f "/usr/share/java/$_" } readdir(DIR)) {
|
||||
$classpath .= ":/usr/share/java/$lib";
|
||||
}
|
||||
closedir DIR;
|
||||
}
|
||||
|
||||
# specify our server root (this is for server code)
|
||||
my $serverroot = "-Dserver.root=$root";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user