From 75cdf102118cd9db1bacb5127fe99ba564ca20a7 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Sat, 10 Aug 2002 07:06:24 +0000 Subject: [PATCH] here is the bugfix. concatSystemClasspath returns a new classpath, so if jasperc was in ant's lib it got lost along with everything else. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273215 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/taskdefs/optional/jsp/compilers/JasperC.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JasperC.java b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JasperC.java index e50a9e6ae..5d96238ef 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JasperC.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JasperC.java @@ -104,10 +104,13 @@ public class JasperC extends DefaultJspCompilerAdapter { // REVISIT. ugly. Java java = (Java) (getProject().createTask("java")); if (getJspc().getClasspath() != null) { + getProject().log("using user supplied classpath: "+getJspc().getClasspath(), + Project.MSG_DEBUG); java.setClasspath(getJspc().getClasspath()); } else { Path classpath=new Path(getProject()); - classpath.concatSystemClasspath(); + classpath=classpath.concatSystemClasspath("only"); + getProject().log("using system classpath: "+classpath, Project.MSG_DEBUG); java.setClasspath(classpath); } java.setDir(getProject().getBaseDir()); @@ -121,6 +124,7 @@ public class JasperC extends DefaultJspCompilerAdapter { //we are forking here to be sure that if JspC calls //System.exit() it doesn't halt the build java.setFork(true); + java.setTaskName("jasperc"); java.execute(); return true; } catch (Exception ex) {