Wasn't included the classpath from the environment.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@254 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
#
|
#
|
||||||
# $Id: runjava,v 1.2 2001/07/24 18:06:02 mdb Exp $
|
# $Id: runjava,v 1.3 2001/08/13 23:30:52 mdb Exp $
|
||||||
#
|
#
|
||||||
# A script for invoking java. The project root is inferred to be one
|
# A script for invoking java. The project root is inferred to be one
|
||||||
# directory above the directory in which this script lives. Based on the
|
# directory above the directory in which this script lives. Based on the
|
||||||
@@ -82,7 +82,11 @@ if (defined $libpath) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# put everything in our class path
|
# put everything in our class path
|
||||||
my $classpath = "-classpath $jlib:$root/$classdir";
|
my $classpath = "$jlib:$root/$classdir";
|
||||||
|
|
||||||
|
# if there's an environment variable set, we'll need to include that too
|
||||||
|
my $ecpath = $ENV{"CLASSPATH"};
|
||||||
|
$classpath = "$ecpath:$classpath" if (defined $ecpath);
|
||||||
|
|
||||||
# any zip or jar files in our lib/ directory get added to the class path
|
# any zip or jar files in our lib/ directory get added to the class path
|
||||||
if (opendir(DIR, "$root/lib")) {
|
if (opendir(DIR, "$root/lib")) {
|
||||||
@@ -96,6 +100,6 @@ if (opendir(DIR, "$root/lib")) {
|
|||||||
# log the pid file if requested to do so
|
# log the pid file if requested to do so
|
||||||
print `echo $$ > $pid_file` if (defined $pid_file);
|
print `echo $$ > $pid_file` if (defined $pid_file);
|
||||||
|
|
||||||
my $cmd = "$java -mx256M $classpath " . join(" ", @ARGV);
|
my $cmd = "$java -mx256M -classpath $classpath " . join(" ", @ARGV);
|
||||||
print "$cmd\n" if ($verbose);
|
print "$cmd\n" if ($verbose);
|
||||||
exec($cmd);
|
exec($cmd);
|
||||||
|
|||||||
Reference in New Issue
Block a user