DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30322>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30322 Jsp's source directory in task Jasper2 for ant Summary: Jsp's source directory in task Jasper2 for ant Product: Tomcat 5 Version: 5.0.27 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When I use the Jasper2 task (ant 1.6.2) as specify in documentation, I can't specify the directory of the .jsp file. He takes all files .jsp in the "uriroot". I have a problem this comportement for 2 raisons : 1) Files .jsp in directory CVS don't be compiled ! (sometimes these files are not valide). 2) I have several directory containing Jsp file, I would like compile only directory. I have change the JspC.java : add a new paramter in task Ant : srcDic. What do you thing about my solution ? Elisabeth J. Index: JspC.java =================================================================== RCS file: /home/cvspublic/jakarta-tomcat- jasper/jasper2/src/share/org/apache/jasper/JspC.java,v retrieving revision 1.80 diff -w -B -b -r1.80 JspC.java 141a142 > private String srcDir; 518a520,528 > // <<M2 > /** > M2 : Spécifie le répertoire Source des fichiers Jsp > */ > public void setSrcDir(String Dir) { > srcDir=Dir; > } > // M2>> > 830a841,844 > // <<M1 : Il faut ignorer les répertoires CVS > String cvs = files[i].substring(files[i].lastIndexOf ('/') +1); > if (!cvs.equalsIgnoreCase("CVS")) > { 831a846,847 > } > // M1>> 875c891,895 < scanFiles( new File( uriRoot )); --- > // <<M2 : Spécification du répertoire source > if (srcDir == null) {srcDir=uriRoot;} > else {if (!(new File(srcDir)).isAbsolute()) {srcDir=uriRoot+"/"+srcDir;}} > scanFiles( new File( srcDir )); > // M2>> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]