Browse Source

Use JRE version of Java

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273893 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
c4d04365d0
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java
  2. +2
    -2
      src/testcases/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java View File

@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -111,7 +111,7 @@ public class ANTLR extends Task {
private File workingdir = null;

public ANTLR() {
commandline.setVm(JavaEnvUtils.getJdkExecutable("java"));
commandline.setVm(JavaEnvUtils.getJreExecutable("java"));
commandline.setClassname("antlr.Tool");
}



+ 2
- 2
src/testcases/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java View File

@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -108,7 +108,7 @@ public class ExecuteWatchdogTest extends TestCase {

private Process getProcess(int timetorun) throws Exception {
String[] cmdArray = {
JavaEnvUtils.getJdkExecutable("java"), "-classpath", TEST_CLASSPATH,
JavaEnvUtils.getJreExecutable("java"), "-classpath", TEST_CLASSPATH,
TimeProcess.class.getName(), String.valueOf(timetorun)
};
//System.out.println("Testing with classpath: " + System.getProperty("java.class.path"));


Loading…
Cancel
Save