orcc/ci-server-scripts

Problem generated Java sources from Xtend

Opened this issue · 1 comments

On another machine, i.e. not the one that experiences the error in #3 , I am seeing the error mv: cannot stat ‘xtend-output/net/sf/orcc/cal/generator/CalGenerator.java’: No such file or directory.

$ $SCRIPTS_DIR/orcc_build $WORK_DIR ~/code/orcc-fork/orcc/eclipse/features ~/code/orcc-fork/orcc/eclipse/plugins
Variable BUILDTYPE has not been set. Initialized to "tests"
***START*** Fri, 01 Aug 2014 22:46:07 +0100 Build type: tests

****************************************************************
*             Generates Cal Xtext architecture                 *
****************************************************************

~/sw/orcc-working-dir/working/build.dir.tests/plugins/net.sf.orcc.cal ~/sw/orcc-working-dir/ci-server-scripts/headless_build
0    INFO  StandaloneSetup    - Registering platform uri '/home/rob/sw/orcc-working-dir/working/build.dir.tests/plugins'
2000 INFO  DirectoryCleaner   - Cleaning /home/rob/sw/orcc-working-dir/working/build.dir.tests/plugins/net.sf.orcc.cal/../net.sf.orcc.cal/src-gen
2001 INFO  DirectoryCleaner   - Cleaning /home/rob/sw/orcc-working-dir/working/build.dir.tests/plugins/net.sf.orcc.cal/../net.sf.orcc.cal.ui/src-gen
2001 INFO  DirectoryCleaner   - Cleaning /home/rob/sw/orcc-working-dir/working/build.dir.tests/plugins/net.sf.orcc.cal/../net.sf.orcc.cal.tests/src-gen
2146 INFO  LanguageConfig     - generating infrastructure for net.sf.orcc.cal.Cal with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EMFGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, JavaValidatorFragment, ImportNamespacesScopingFragment, QualifiedNamesFragment, BuilderIntegrationFragment, GeneratorFragment, FormatterFragment, LabelProviderFragment, OutlineTreeProviderFragment, QuickOutlineFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment, Junit4Fragment, QuickfixProviderFragment, RefactorElementNameFragment, CompareFragment
8892 INFO  GenModelHelper     - Registered GenModel 'http://orcc.sf.net/cal/Cal' from 'platform:/resource/net.sf.orcc.cal/model/generated/Cal.genmodel'
24298 INFO  JavaValidatorFragment - generating Java-based EValidator API
29188 INFO  Junit4Fragment     - generating Junit4 Test support classes
29213 INFO  CompareFragment    - generating Compare Framework infrastructure
29372 INFO  Workflow           - Done.
~/sw/orcc-working-dir/ci-server-scripts/headless_build

****************************************************************
*             Generates Java sources from Xtend                *
****************************************************************

~/sw/orcc-working-dir/working/build.dir.tests/plugins ~/sw/orcc-working-dir/ci-server-scripts/headless_build
0    INFO  XtendBatchCompiler - No sources to compile in ''
0 [main] INFO org.eclipse.xtend.core.compiler.batch.XtendBatchCompiler  - No sources to compile in ''
mv: cannot stat ‘xtend-output/net/sf/orcc/cal/generator/CalGenerator.java’: No such file or directory

A work around is to simply run the same command again. The second run seems to overcome this error.