ASF Bugzilla – Attachment 15570 Details for
Bug 35571
JspC misinterprets uriRoot when executed as ant task
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patchfile.txt (text/plain), 1.63 KB, created by
Jason Pettiss
on 2005-07-01 06:07:47 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jason Pettiss
Created:
2005-07-01 06:07:47 UTC
Size:
1.63 KB
patch
obsolete
>Index: JspC.java >=================================================================== >RCS file: /home/cvspublic/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v >retrieving revision 1.96 >diff -u -r1.96 JspC.java >--- JspC.java 29 Apr 2005 17:18:22 -0000 1.96 >+++ JspC.java 1 Jul 2005 03:46:56 -0000 >@@ -47,6 +47,7 @@ > import org.apache.jasper.compiler.TldLocationsCache; > import org.apache.jasper.servlet.JspCServletContext; > import org.apache.tools.ant.AntClassLoader; >+import org.apache.tools.ant.Project; > > /** > * Shell for the jspc compiler. Handles all options associated with the >@@ -146,6 +147,7 @@ > private String targetClassName; > private String uriBase; > private String uriRoot; >+ private Project project; > private int dieLevel; > private boolean helpNeeded = false; > private boolean compile = false; >@@ -596,6 +598,14 @@ > } > > /** >+ * Ant project. Set by Ant when this class is invoked as a >+ * Task, so that the uriRoot can be resolved correctly. >+ */ >+ public void setProject( Project p ) { >+ project=p; >+ } >+ >+ /** > * Base dir for the webapp. Used to generate class names and resolve > * includes > */ >@@ -605,7 +615,11 @@ > return; > } > try { >- uriRoot=new File( s ).getCanonicalPath(); >+ if( null!=project ) { >+ uriRoot=new File(project.getBaseDir(), s).getCanonicalPath(); >+ } else { >+ uriRoot=new File( s ).getCanonicalPath(); >+ } > } catch( Exception ex ) { > uriRoot=s; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35571
:
15570
|
15578