Bug 17675 - metainf files ignored by jar task
Summary: metainf files ignored by jar task
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: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 16:03 UTC by Karl
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 Karl 2003-03-05 16:03:35 UTC
Hi,

I installed 1.5.2 today, but have found that when making jars and ears,
the tasks are ignoring the files mentioned in the <metainf> nested element are
ignored and don't make it into my jar/ear.  I switched back to 1.5.1 and it 
works fine.

Regards,
Karl O'Brien.


Task segment :

<jar 
   jarfile="${build.deploy.dir}/entitybeans.jar"
   compress="false"
   >

   <metainf dir="${src.server.dir}/META-INF" casesensitive="yes">
      <include name="ejb-jar.xml"/>
      <include name="orion-ejb-jar.xml"/>
   </metainf>		

   <fileset dir="${build.classes.server.dir}" >
      <include name="ccf/entitybeans/**" />
      <exclude name="**/*Test.class" />
      <exclude name="**/*TestSuite.class" />
   </fileset>				
</jar>
Comment 1 Antoine Levy-Lambert 2003-03-05 21:16:43 UTC
I have tried to reproduce your problem, and I found the following :


- the metainf files are in the ${build.deploy.dir}/entitybeans.jar


- but you do not see them with winzip, you only see them with "jar tvf 
entitybeans.jar"


Could you retry and confirm that this is the case ?


There is another similar bug which someone has entered recently.


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


can you confirm that it is the same basic problem, so that this bug be marked as 
a duplicate of 17648


Comment 2 Antoine Levy-Lambert 2003-03-05 21:41:04 UTC
the line 540 of Zip.java should be fixed :


-            fileMode = zfs.getDirMode();


+            fileMode = zfs.getFileMode();




Comment 3 Karl 2003-03-06 09:21:22 UTC
Yes, I can see the files using "jar tvf entitybeans.jar" but not with
WinZip.  I never saw that one before.  As you say, it seems to be similar to 
bug #17648

Thanks for your help,
K.


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