Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #779 (closed)

Opened 17 years ago

Closed 15 years ago

Dist's "ant update" sometimes fails to update jars

Reported by: jamoore Owned by: jamoore
Priority: minor Cc:
Sprint: n.a.
Total Remaining Time: n.a.

Description

Assuming one is trying to update etc/local.properties into omero.ear!local.properties, the update is done only when:

  • time(etc/local.properties) > time(omero.ear!local.properties)

and time(omero.ear) plays no role. Therefore to ensure that the update occurs on has to touch etc/local.properties (something of a hack, but there appears to be no other way).

Ref: http://issues.apache.org/bugzilla/show_bug.cgi?id=10755

Note: this arose when a user had moved omero.ear to a system with a different timezone. The jar was silently NOT updated, causing issues.

Change History (3)

comment:1 Changed 17 years ago by jmoore

  • Owner changed from callan to jmoore
  • Status changed from new to assigned

r1781 attempted to fix this but the update target should still be considered broken when timestamps are involved (for example):

   date # prints Mon Sep 17 22:26:25 CEST 2007
   java omero build dist
   tar cjf dist.tar.bz2 dist
   ssh dist.tar.bz2 someothersystem:~/dist.tar.bz2

Then a user in an earlier timezone:

   wget http://example.com/dist.tar.bz2
   tar xjf dist.tar.bz2
   ls -ltra # prints local times, say 11:30 AM PST 2007
   #BUT
   unzip -l blitz/blitz.jar # prints times around 22:30 again.

The only workaround may be to use shell scripts.

comment:2 Changed 16 years ago by jmoore

  • Milestone changed from 3.0-Beta3 to 3.0-Beta4

comment:3 Changed 15 years ago by jmoore

  • Resolution set to fixed
  • Status changed from assigned to closed

With the changes for #800, ant update has been removed.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.62762 sec.)

We're Hiring!