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>
* </pre>
*
- * @version $Revision: 1.1 $ $Date: 2001/09/13 08:31:21 $
+ * @version $Revision: 1.2 $ $Date: 2001/10/19 00:33:07 $
* @author <a href="mailto:[EMAIL PROTECTED]">Matthew Watson</a>
* <p> Large Amount of cutting and pasting from the Javac task...
* @author James Davidson <a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>
@@ -118,6 +118,20 @@
private int verbose = 0;
protected Vector compileList = new Vector();
protected boolean failOnError = true;
+
+ /**
+ * -uribase <dir>The uri directory compilations should be relative to
+ * (Default is "/")
+ */
+
+ private File uribase;
+
+ /**
+ * -uriroot <dir>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 <dir>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) {