|
Re: ERROR: Resource is out of sync with the file system [message #1387108 is a reply to message #1387029] |
Tue, 24 June 2014 08:10 |
|
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
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03344 seconds