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 7538] New: - GenericDeploymentTool doesn't find manifest if flatdestdir=true
Date Wed, 27 Mar 2002 20:44:07 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=7538>.
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=7538

GenericDeploymentTool doesn't find manifest if flatdestdir=true

           Summary: GenericDeploymentTool doesn't find manifest if
                    flatdestdir=true
           Product: Ant
           Version: 1.5 alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: gilbode@yahoo.com


Assume the following file structure and <ejbjar> target, the manifest is NOT
included in the output jar:

classes/com/somecom/ejb/Test.class
classes/com/somecom/ejb/TestHome.class
classes/com/somecom/ejb/TestBean.class
src/com/somecom/ejb/Test.java
src/com/somecom/ejb/TestHome.java
src/com/somecom/ejb/TestBean.java
src/com/somecom/ejb/Test-ejb-jar.xml
src/com/somecom/ejb/Test-manifest.mf

<ejbjar descriptordir="src" srcdir="classes" flatdestdir="true" destdir=".">
    <include name="**/*ejb-jar.xml"/>
</ejbjar>

Using the following structure and call, the manifest file is included:

classes/com/somecom/ejb/Test.class
classes/com/somecom/ejb/TestHome.class
classes/com/somecom/ejb/TestBean.class
src/com/somecom/ejb/Test.java
src/com/somecom/ejb/TestHome.java
src/com/somecom/ejb/TestBean.java
src/com/somecom/ejb/Test-ejb-jar.xml
src/Test-manifest.mf

<ejbjar descriptordir="src" srcdir="classes" flatdestdir="false" destdir=".">
    <include name="**/*ejb-jar.xml"/>
</ejbjar>

<ejbjar descriptordir="src" srcdir="classes" destdir=".">
    <include name="**/*ejb-jar.xml"/>
</ejbjar>


The code in GenericDeploymentTool.java uses basedir in the buildJar method to
find the manifest file.  Basedir that is passed into this method has already
been trimmed if flatdestdir=true.

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


Mime
View raw message