ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21096] New: - jspc doesn't maitain package hierarchy
Date Wed, 25 Jun 2003 22:09:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21096>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21096

jspc doesn't maitain package hierarchy

           Summary: jspc doesn't maitain package hierarchy
           Product: Ant
           Version: 1.5.2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jwilmoth@starbucks.com


The jspc task (with a value for compiler="jasper41") generates .java files 
that do not preserve the directory hierarchy as a package hierarchy.

Given the following jsp directory structure:

a.jsp
mydir/a.jsp

the jspc task produces:
a_jsp.java
mydir/a_jsp.java

The problem is that both a_jsp.java & mydir/a_jsp.java have the same package 
declaration.  The package declaration is either the value of the "package" 
task attribute or "org.apache.jsp" if no "package" task attribute value is 
provided.  The fact that the java compiler fails to due to a duplicate class 
name is the extreme situation, but most compilers will atleast complain about 
the package structure not matching the file structure.  Both the physical file 
hierarchy and the resulting package structure should be the same.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message