Bug 12587 - jar update not working on solaris
Summary: jar update not working on solaris
Status: RESOLVED WORKSFORME
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.5
Hardware: Sun Solaris
: P3 critical with 1 vote (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-12 18:29 UTC by bstout
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 bstout 2002-09-12 18:29:41 UTC
The following snippet works on windows:
    <jar destfile="${deploy.file}"
      basedir="${tmpdir}/deploy"
      update="true"
      manifest="${tmpdir}/META-INF/MANIFEST.MF">

      <metainf dir="${tmpdir}/deploy/${config}">
        <patternset refid="deploy.config.path"/>
      </metainf>
    </jar>

However, on Solaris it fails to update the jar file at all.  If I remove the 
manifest attribute to the jar task, then it runs on Solaris.  Unfortunately the 
default manifest is created and stuck in the jar.
Comment 1 Stefan Bodewig 2002-09-13 11:04:34 UTC
Do you create your manifest (tmpdir hints, you would).  If so, is it possible
that it is newer than ${deploy.file}?  If so again, this report is a duplicate
of Bug 10755.
Comment 2 bstout 2002-09-13 23:16:18 UTC
I do create my own manifest.

I tried creating the manifest both before the jar file is copied (thereby the 
manifest being older then the jar) and creating it after the jar is copied 
(where the manifest would be new then the jar).  Neither worked.

In addition, the behavior is correct on windows 2000 and XP, 10755 seems to be 
a generic problem not platform specific.
Comment 3 Stefan Bodewig 2002-11-15 14:30:06 UTC
OK, another try.  Bug 12440?

Could you please give the lastest build from
<http://cvs.apache.org/~bodewig/gump/ant1.5.2alpha/> a try and see whether the
problem is fixed with that?
Comment 4 Stefan Bodewig 2003-03-28 13:31:18 UTC
Does the problem still exist with Ant 1.5.3beta?
Comment 5 bstout 2003-03-28 18:29:24 UTC
We no longer build on Solaris.  I think I included the build script - maybe you 
can try.