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 6836] New: - ear adds application.xml file twice
Date Mon, 04 Mar 2002 09:11:02 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=6836>.
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=6836

ear adds application.xml file twice

           Summary: ear adds application.xml file twice
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: oam@arcadia.it


I have an ear task defined like this: 

  <target name="make_app_ear" depends="deploy_ejbs, make_app_war" description="-
-> makes the application ear">
<!--this task generates the application.xml deployment descriptor in 
${ear.dir}/META-INF/application.xml -->
    <java classname="weblogic.ant.taskdefs.ear.DDInit" 
classpathref="project.class.path">
      <arg line="${ear.dir}"/>
    </java>
    <ear basedir="${ear.dir}" excludes="${ear.dir}/META-INF/application.xml" 
earfile="${BEA.DEPLOY.HOME}/SFA_Promotori.ear" appxml="${ear.dir}/META-
INF/application.xml">
    </ear>
</target>


The problem is that even if I exclude the application.xml file it gets added 
twice on the archive ( under the same directory ! ) 
Here's what my. ear file contains: 
C:\bea\wlserver6.1\config\wksmi100domain\applications>jar tvf SFA_Promotori.ear
     0 Mon Mar 04 10:09:44 CET 2002 META-INF/
    48 Mon Mar 04 10:09:44 CET 2002 META-INF/MANIFEST.MF
     0 Mon Mar 04 10:09:44 CET 2002 config/
     0 Mon Mar 04 10:09:44 CET 2002 lib/
  5382 Mon Mar 04 10:09:44 CET 2002 config/log4j.dtd
    28 Mon Mar 04 10:09:44 CET 2002 config/SFA.properties
  1440 Mon Mar 04 10:09:44 CET 2002 config/SFAlogConfig.xml
158892 Mon Mar 04 10:09:44 CET 2002 lib/log4j.jar
   432 Mon Mar 04 10:09:44 CET 2002 META-INF/application.xml
431010 Mon Mar 04 10:09:40 CET 2002 SFA_entitys.jar
 20889 Mon Mar 04 10:09:42 CET 2002 SFA_WEB.war
   432 Mon Mar 04 10:09:44 CET 2002 META-INF/application.xml

and here's ant's output when runned with -debug

FileSet: Setup file scanner in dir 
C:\Marius\Work\SFA_Promotori\work_dir\ear_to_deploy\META-INF with patternSet{ 
includes: [application.xml] excludes: [] }
      [ear] config\log4j.dtd added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] config\SFA.properties added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] config\SFAlogConfig.xml added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] lib\log4j.jar added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] META-INF\application.xml added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] SFA_entitys.jar added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] SFA_WEB.war added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear]  added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] config added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] lib added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] META-INF added as C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear is outdated.
      [ear] Building ear: C:\bea\wlserver6.1
\config\wksmi100domain\applications\SFA_Promotori.ear
FileSet: Setup file scanner in dir 
C:\Marius\Work\SFA_Promotori\work_dir\ear_to_deploy with patternSet{ includes: 
[] excludes: [../work_dir/ear_to_deploy/META-INF/application.xml] }
FileSet: Setup file scanner in dir 
C:\Marius\Work\SFA_Promotori\work_dir\ear_to_deploy\META-INF with patternSet{ 
includes: [application.xml] excludes: [] }

all:

BUILD SUCCESSFUL

Total time: 26 seconds


Best regards, 
Marius

--
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