Community
Participate
Working Groups
Build Identifier: 0.10.0.201011091645 I'm using new Git FetchFactory 0.10.0.201011091645 with eclipse 3.6.1 R1 The retrieve.xml file lacks of specific git targets. An horrible patch is add to the end of generateRetrieveFilesCall() // FIXME: script.printTargetEnd(); // close main target opened by the caller FetchScriptGenerator.retrieveFeature() addTargets(script); // add all git specific targets script.printTargetDeclaration("foo", null, null, null, null); // open a new target that will be close by the caller FetchScriptGenerator.retrieveFeature() Reproducible: Always
Created attachment 185347 [details] files generated by git FetchFactory
Thanks for the bug. We plan on officially shipping the fetch factory in 0.11 and appreciate reports and any patches from the community :)
Nikolas, there were a few problems in PDE/Build that needed to be fixed for the git fetch factory to work properly. See bug 327607, and also bug 328059. You should try using a recent version of pde.build in your base builder. 3.7M5 is due out this week, the most recent M5 candidate build is http://download.eclipse.org/eclipse/downloads/drops/I20110127-1100/index.php
I update our headless build system with eclipse 3.7M6 Now factory work without patch but i found two scmCache directories. Analyzing problem for a lot of time, i found the problem in the genericTargets.xml at fetchElement target the call to eclipse.fetch task, generate a temporary retrieve.xml file (hard to copy on running) that start with <project name="RetrieveFeature" default="main" basedir="."> ... in this case basedir is always ${buildDirectory} because retrieve.xml is generate into ${buildDirectory} without inherit basedir (it was forced as attribute into project element) After task ended invoke the fetch_${topLevelElementId}.xml script file that call all other fetch scripts. In this case files are start all with <project name="FetchScript" default="fetch"> and basedir was inherit and can be different from retrieve.xml. In my case: - first one: fetchCacheLocation=${basedir}/scmCache --> /home/builder/build-system/sources (parent file of retrieve.xml) inherith from natural mechanism ant property - second one: fetchCacheLocation=${basedir}/scmCache --> parent of ${buildDirectory} --> /home/builder/build-system :\ I now that is possible define fetchCacheLocation but is not documented at the moment. Better if is the same. Sorry for english :)
Please reopen if this is still a problem.