History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OSMORC-105
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Robert F. Beeger
Reporter: Nick Pratt
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Osmorc

Osmorc is not updating deployed code after edit/compile/run cycle

Created: 14 Jan 09 20:55   Updated: 10 Sep 09 14:46
Component/s: None
Affects Version/s: 0.11.0
Fix Version/s: 0.12.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
OSMORC-116 jar bundles only will be updated when... Critical Closed


 Description  « Hide
Im making changes in my source, re compiling, running my Equinox App, and the debugger is out of synch with the source code - something is not in synch.

 All   Comments   Work Log   Change History      Sort Order:
Nick Pratt - 14 Jan 09 22:08
Assuming that the synch of basic .class file changes is being monitored, I suspect that Osmorc is not currently checking the additional JAR dependencies - some of these files specified are config files and also other project JARs (non OSGI in-house JARs that are used and bundled with our OSGI application).

For these non OSGI-modules IDEA is configured to build a JAR after make, and copy it into the required OSGI_Module/lib folder upon completion.


Robert F. Beeger - 15 Jan 09 01:42
Hi Nick,

Your suspicion is correct. A rebuild of the bundle jar is triggered by IDEA's compiler integration. After IDEA compiles something - for example when a source file is changed and a run config is executed - the jar is rebuilt. Changes of a files and folders in the additional JAR contents do not trigger such a rebuild. We'll need to fix this. Note also that changes to a manifest file also do not trigger a rebuild of the JAR.

For the time being you'll need to manually trigger a recompilation of a module to force a rebuild of the bundle jar.


Robert F. Beeger - 31 Jan 09 17:22
Changes to files that are part of the additional JAR contents now trigger a rebuild of the bundle JAR.

Nick Pratt - 04 Feb 09 23:21
Robert

I grabbed the latest code, rebuilt the plugin and deployed - this doesnt seem to be fixed. Changes to a non OSGI JAR are not triggering a rebuild of the OSGI bundle that contains this JAR in its /lib folder.


Robert F. Beeger - 05 Feb 09 01:52
Hi Nick,

That's strange. Does the timestamp of the jar change with each change or does it stay the same?
On what OS does the problem occur? If I remember it correctly you were using Windows. Is that still correct.
Did you somehow deactivate IDEA's automatic file update feature by deleting any DLLs or not activating fslogger on Mac OS X (or whatever mechanism IDEA uses on that OS nowadays.)

I guess you have added lib/ to your additional jar contents. If that is right, please do the following test:
1. Create a new file foo.txt in your lib folder.
2. Open this file in IDEA.
3. Change it with some external editor.
4. On returning to IDEA: Do you see the change in the editor for that file?