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=29125>. 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=29125 jscp task's partial failure when compiling a directory tree Summary: jscp task's partial failure when compiling a directory tree Product: Ant Version: 1.6.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] [note:] It would be much easier to submit some bugs including this one if i was able to submit a file [/note] [bug description:] (files description at the bottom) [jspc] task partially fails each time a try to compile several jsp pages in a directory tree. It does compile files in every subdirectory, but fails to compile files in the "srcdir" directory. Error is this Buildfile: build.xml jspcoo: [mkdir] Created dir: D:\majkl\bug\out [jspc] Compiling 2 source filesD:\majkl\bug\out [jasperc] java.util.EmptyStackException [jasperc] at java.util.Stack.peek(Stack.java:79) [jasperc] at org.apache.jasper.compiler.ParserController. resolveFileName(ParserController.java:419) [jasperc] at org.apache.jasper.compiler.ParserController. parse(ParserController.java:187) [jasperc] at org.apache.jasper.compiler.Compiler.compile(Compiler.java: 210) [jasperc] at org.apache.jasper.JspC.parseFile(JspC.java:407) [jasperc] at org.apache.jasper.JspC.parseFiles(JspC.java:727) [jasperc] at org.apache.jasper.JspC.main(JspC.java:742) [jspc] deleting empty output file D:\majkl\bug\out\index.java BUILD FAILED file:D:/majkl/bug/build.xml:7: Java returned: 9 Total time: 1 second Interesting is that if you run same task second time without any other action it DOES compile the rest of files (e.g. the ones in the srcdir directory itself). But what the most ridiculous is this (I am not kidding you, I am experiencing it): I've got srcdir "." and a subdir "foo". First call of task jspc compiles foo/**/*.jsp. Second call compiles ./*.jsp as well as described above. But when I rename the "foo" subdir to anything what begins with 's' (e.g."sfoo") jspc task starts to compile everything at first call (as it should from the beginning) !!! I wonder whether this is windows' fault/feature or ant's. files to easily reproduce the bug (best try to several times run ant in the directory of these files and see what happens): [build.xml] <?xml version="1.0" encoding="UTF-8"?> <project name="antBug" default="jspcoo" basedir="."> <target name="jspcoo"> <mkdir dir="out"/> <jspc srcdir="." destdir="out"> <include name="**/*.jsp"/> </jspc> <delete dir="out"/> <!-- for better view of results --> </target> </project> [index.jsp] <html><body>hello</body></html> [foo/bug.jsp] <%= 5+5 %> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]