ERROR: Resource is out of sync with the file system [message #1387029] |
Mon, 23 June 2014 10:59  |
Eclipse User |
|
|
|
Hello,
I build a simple plugin project with Jenkins and Buchminster. The process is:
- check out a Git repo (done my Jenkins)
- change the target definition file (rewrite URLs to the local p2 mirror)
- Run buckminster script
- importtargetdefinition '-A' <target definition>
- ...
Running the build for the first time after cleaning the entire build workspace runs successfully. Running consequent builds produces the error:
INFO: importtargetdefinition '-A' '/path/project/kepler.target'
Resource is out of sync with the file system: '/project/kepler.target'
This is very strange for me, since Kepler has activated refresh on access option by default...
How can I solve this problem?
My ideas:
- Activate refresh on startup by coping proper .prefs file into .metadata
=> didn't worked for me
- Call a buchminster refresh command prior to importtargetdefinition
=> No such command exists yet
- Update everything to the last stable version
=> the error is still there
Thank you very much in advance!
Cheers,
Boris Brodski
|
|
|
Re: ERROR: Resource is out of sync with the file system [message #1387108 is a reply to message #1387029] |
Tue, 24 June 2014 04:10   |
Eclipse User |
|
|
|
On 23/06/2014 16:59, Boris Brodski wrote:
> Hello,
>
> I build a simple plugin project with Jenkins and Buchminster. The
> process is:
>
> - check out a Git repo (done my Jenkins)
> - change the target definition file (rewrite URLs to the local p2 mirror)
> - Run buckminster script
> - importtargetdefinition '-A' <target definition>
> - ...
>
> Running the build for the first time after cleaning the entire build
> workspace runs successfully. Running consequent builds produces the error:
>
> INFO: importtargetdefinition '-A' '/path/project/kepler.target'
> Resource is out of sync with the file system: '/project/kepler.target'
>
> This is very strange for me, since Kepler has activated refresh on
> access option by default...
>
> How can I solve this problem?
>
> My ideas:
> - Activate refresh on startup by coping proper .prefs file into .metadata
> => didn't worked for me
>
> - Call a buchminster refresh command prior to importtargetdefinition =>
> No such command exists yet
>
> - Update everything to the last stable version
> => the error is still there
>
> Thank you very much in advance!
Hi Boris
in my Jenkins builds based on Buckminster I always delete the Eclipse
workspace before the build. NOTE: I'm NOT talking about Jenkins
workspace, but the Eclipse workspace used by Buckminster; I do that
using an ant target (e.g., the "cleanup" target you can find here
https://github.com/LorenzoBettini/xsemantics/blob/master/releng/it.xsemantics.buckminster/common.ant).
This ant target does NOT clear the bundlepool subdirectory of the
Eclipse workspace, but it deletes the projects area so that all the
projects are always reimported from scratch on each Jenkins build.
This ant script is based on the one generated by the Xtext Buckminster
wizard, by the way.
Hope this helps
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
|
|
|
|
Re: ERROR: Resource is out of sync with the file system [message #1404720 is a reply to message #1387029] |
Tue, 05 August 2014 05:22  |
Eclipse User |
|
|
|
On 23/06/2014 16:59, Boris Brodski wrote:
> Hello,
>
> I build a simple plugin project with Jenkins and Buchminster. The
> process is:
>
> - check out a Git repo (done my Jenkins)
> - change the target definition file (rewrite URLs to the local p2 mirror)
> - Run buckminster script
> - importtargetdefinition '-A' <target definition>
> - ...
>
> Running the build for the first time after cleaning the entire build
> workspace runs successfully. Running consequent builds produces the error:
>
> INFO: importtargetdefinition '-A' '/path/project/kepler.target'
> Resource is out of sync with the file system: '/project/kepler.target'
>
> This is very strange for me, since Kepler has activated refresh on
> access option by default...
>
> How can I solve this problem?
Hi
going back to this thread: I think that the rewriting of the target
definition file should be done outside the corresponding project
directory (i.e., the resulting .target file should be put outside the
project); IIRC importtargetdefinition needs an absolute path so you can
specify also a .target file which is outside the projects... This way
you won't get refresh errors.
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
|
|
|
Powered by
FUDForum. Page generated in 0.09803 seconds