|
@@ -55,7 +55,7 @@ $JAVACMD = "java" if $JAVACMD eq ""; |
|
|
#and perl is not too hot at hinting which box it is on. |
|
|
#and perl is not too hot at hinting which box it is on. |
|
|
#here I assume ":" 'cept on win32 and dos. Add extra tests here as needed. |
|
|
#here I assume ":" 'cept on win32 and dos. Add extra tests here as needed. |
|
|
my $s=":"; |
|
|
my $s=":"; |
|
|
if(($^O eq "MSWin32") || ($^O eq "dos")) |
|
|
|
|
|
|
|
|
if(($^O eq "MSWin32") || ($^O eq "dos") || ($^O eq "cygwin")) |
|
|
{ |
|
|
{ |
|
|
$s=";"; |
|
|
$s=";"; |
|
|
} |
|
|
} |
|
@@ -101,19 +101,21 @@ else |
|
|
"to the installation directory of java\n"; |
|
|
"to the installation directory of java\n"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#set JVM options and Ant arguments, if any |
|
|
|
|
|
my @ANT_OPTS=split(" ", $ENV{ANT_OPTS}); |
|
|
|
|
|
my @ANT_ARGS=split(" ", $ENV{ANT_ARGS}); |
|
|
|
|
|
|
|
|
#jikes |
|
|
#jikes |
|
|
my @ANT_OPTS=split $ENV{ANT_OPTS}; |
|
|
|
|
|
if($ENV{JIKESPATH} ne "") |
|
|
if($ENV{JIKESPATH} ne "") |
|
|
{ |
|
|
{ |
|
|
push @ANT_OPTS, "-Djikes.class.path=$ENV{JIKESPATH}"; |
|
|
push @ANT_OPTS, "-Djikes.class.path=$ENV{JIKESPATH}"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#construct arguments to java |
|
|
#construct arguments to java |
|
|
|
|
|
|
|
|
my @ARGS; |
|
|
my @ARGS; |
|
|
push @ARGS, "-classpath", "$localpath", "-Dant.home=$HOME"; |
|
|
push @ARGS, "-classpath", "$localpath", "-Dant.home=$HOME"; |
|
|
push @ARGS, @ANT_OPTS; |
|
|
push @ARGS, @ANT_OPTS; |
|
|
push @ARGS, "org.apache.tools.ant.Main"; |
|
|
|
|
|
|
|
|
push @ARGS, "org.apache.tools.ant.Main", @ANT_ARGS; |
|
|
push @ARGS, @ARGV; |
|
|
push @ARGS, @ARGV; |
|
|
|
|
|
|
|
|
print "\n $JAVACMD @ARGS\n\n" if ($debug); |
|
|
print "\n $JAVACMD @ARGS\n\n" if ($debug); |
|
|