Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 59578 invoked by uid 500); 19 Oct 2001 00:39:29 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 59569 invoked by uid 500); 19 Oct 2001 00:39:29 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Date: 19 Oct 2001 00:33:07 -0000 Message-ID: <20011019003307.58885.qmail@icarus.apache.org> From: stevel@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp JspC.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stevel 01/10/18 17:33:07 Modified: src/main/org/apache/tools/ant/taskdefs/optional/jsp JspC.java Log: added uriroot and uribase options Revision Changes Path 1.2 +47 -1 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java Index: JspC.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JspC.java 2001/09/13 08:31:21 1.1 +++ JspC.java 2001/10/19 00:33:07 1.2 @@ -98,7 +98,7 @@ * </jspc> * * - * @version $Revision: 1.1 $ $Date: 2001/09/13 08:31:21 $ + * @version $Revision: 1.2 $ $Date: 2001/10/19 00:33:07 $ * @author Matthew Watson *

Large Amount of cutting and pasting from the Javac task... * @author James Davidson duncan@x180.com @@ -118,6 +118,20 @@ private int verbose = 0; protected Vector compileList = new Vector(); protected boolean failOnError = true; + + /** + * -uribase

The uri directory compilations should be relative to + * (Default is "/") + */ + + private File uribase; + + /** + * -uriroot The root directory that uri files should be resolved + * against, + */ + private File uriroot; + private static final String FAIL_MSG = "Compile failed, messages should have been provided."; /* ------------------------------------------------------------ */ @@ -198,6 +212,38 @@ { mapped = mapped_; } + + /** + * -uribase. the uri context of relative URI + * references in the JSP pages. If it does not + * exist then it is derived from the location of the file + * relative to the declared or derived value of -uriroot. + * + * @param uribase The new Uribase value + */ + public void setUribase(File uribase) { + this.uribase = uribase; + } + + public File getUribase() { + return uriroot; + } + + /** + * -uriroot The root directory that uri files should be resolved + * against, (Default is the directory jspc is invoked from) + * + * @param uriroot The new Uribase value + */ + public void setUriroot(File uriroot) { + this.uriroot = uriroot; + } + + public File getUriroot() { + return uriroot; + } + + /* ------------------------------------------------------------ */ /** Set the classpath to be used for this compilation */ public void setClasspath(Path cp) {