Browse Source

Path is a ProjectComponent - use it for logging

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277335 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
1a6da5ebd5
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      src/main/org/apache/tools/ant/types/CommandlineJava.java

+ 3
- 7
src/main/org/apache/tools/ant/types/CommandlineJava.java View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2005 The Apache Software Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -625,20 +625,16 @@ public class CommandlineJava implements Cloneable {
if (bootclasspath != null if (bootclasspath != null
&& bootclasspath.toString().trim().length() > 0) { && bootclasspath.toString().trim().length() > 0) {


/*
* XXX - need to log something, but there is no ProjectComponent
* around to log to.
*/
if (!bootclasspath.toString() if (!bootclasspath.toString()
.equals(bootclasspath.concatSystemClasspath("ignore") .equals(bootclasspath.concatSystemClasspath("ignore")
.toString())) { .toString())) {
if (log) { if (log) {
System.out.println("Ignoring bootclasspath as "
bootclasspath.log("Ignoring bootclasspath as "
+ "build.sysclasspath has been set."); + "build.sysclasspath has been set.");
} }
} else if (vmVersion.startsWith("1.1")) { } else if (vmVersion.startsWith("1.1")) {
if (log) { if (log) {
System.out.println("Ignoring bootclasspath as "
bootclasspath.log("Ignoring bootclasspath as "
+ "the target VM doesn't support it."); + "the target VM doesn't support it.");
} }
} else { } else {


Loading…
Cancel
Save