Bug 18608 - ear attribute appxml does not work
Summary: ear attribute appxml does not work
Status: RESOLVED DUPLICATE of bug 17648
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5.2
Hardware: PC All
: P3 normal (vote)
Target Milestone: 1.5.3
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-02 13:33 UTC by Joel Goodling
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Goodling 2003-04-02 13:33:27 UTC
I have the following ear task in my ant build script:

<ear destfile="${product}" appxml="./Source/java/META-INF/application.xml" 
manifest="./Source/java/META-INF/MANIFEST.MF">
		<fileset dir="${deploy.dir}" includes="*.jar">
            		<exclude name="tnrouter-schedulable-1.0.0.jar"/>
		</fileset>
	        <fileset dir="${deploy.dir}" includes="*.war"/>
</ear>

The resulting .ear file does not include the application.xml file in the
META-INF directory (actually not at all). The indicated MANIFEST.MF makes it in
the .ear file just fine.

Running ant -debug produces the following:
ZipFileSet: Setup scanner in dir
C:\PTDT\IntegratedFactory\TNRouter\Source\java\META-INF with patter
nSet{ includes: [application.xml] excludes: [] }
      [ear] Building ear:
C:\PTDT\IntegratedFactory\TNRouter\build\deploy\tnrouter.ear
      [ear] adding directory META-INF/
      [ear] adding entry META-INF/MANIFEST.MF
      [ear] adding entry tnrouter-common-1.0.0.jar
      [ear] adding entry tnrouter-factories-1.0.0.jar
      [ear] adding entry tnrouter-orders-1.0.0.jar
      [ear] adding entry tnrouter-soapservices-1.0.0.jar
      [ear] adding entry tnrouter-gui-webapp-1.0.0.war
      [ear] adding entry tnrouter-soap-webapp-1.0.0.war
      [ear] adding entry tnrouter-webapp-1.0.0.war
      [ear] adding entry META-INF/application.xml

As you can see, ant -debug *says* that it is adding application.xml, however, it
does not appear in my .ear file.
Comment 1 Stefan Bodewig 2003-04-02 13:54:02 UTC
says WinZIP?  Please try 1.5.3beta1.

*** This bug has been marked as a duplicate of 17648 ***