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=4240>.
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=4240

war task enhancements needed

           Summary: war task enhancements needed
           Product: Ant
           Version: 1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I used ant to create a war file for a web application.
The web application needs multiple jars to be placed in the WEB-INF/lib
directory

The jars have the path contrib/100world/lib/v*/name/lib/*.jar
 
i tried 
    <lib dir ="${contrib.dir}">
        <include name="**/crimson.jar"/>
        <include name="**/xalan.jar"/>
        <include name="**/jaxp.jar"/>
    </lib>
but the files are copied with full path, and i get the structure:
WEB-INF/lib/100world/lib/name/v*/lib/*.jar, which is not valid for a
webapplication

i tried using mapping type=flatten but the war and lib tags do not support it

finally i resolved the problem writing by hand:
    <lib dir ="${contrib.dir}/100world/lib/java-jaxp/v1.1/lib">
                  <include name="**/crimson.jar"/>
    </lib>

             <lib dir ="${contrib.dir}/100world/lib/java-jaxp/v1.1/lib">
                  <include name="**/xalan.jar"/>
            </lib>
            
            <lib dir ="${contrib.dir}/100world/lib/java-jaxp/v1.1/lib">
                  <include name="**/jaxp.jar"/>
            </lib>

... (there are at least 10 jars to be added)

The ant build works, but i hope that a solution will be found (the lib tag to
copy without directory structure or to support mapping or to have an attribute
to specifiy not to recreate the directory structure)

Reply via email to