|
|
|
|
|
|
|
Re: headless Xtend2 code generation with Ant [message #792243 is a reply to message #790125] |
Mon, 06 February 2012 14:50  |
Eclipse User |
|
|
|
My patience has been rewarded :-)
I integrated the codegen into our headless pde tools based build process
and re-used the generated classpath for compiling the sources.
No idea why - pde adds the org.apache.jasper bundle to the classpath.
This bundle contains org.eclipse.jdt.internal.compiler.batch.Main as well - sucker!!
Excluding this bundle from the classpath leads to success!
Christian
On 3.02.12 22:19 , Christian Schneider wrote:
> On 26.01.12 13:40, Christian Dietrich wrote:
>> Hi, no I had to figure out my class path myself
>
> Hi again,
>
> I managed to establish the generic headless java code generation
> within our continuous integration by deploying your template.
>
> Curiously, it works for all but one bundle for a reason I absolutely don't get!
> With this bundle it always fails with the following output:
>
> [java] [java] Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.batch.Main.compile([Ljava/lang/String;Ljava/io/PrintWriter;Ljava/io/PrintWriter;Lorg/eclipse/jdt/core/compiler/CompilationProgress;)Z
> [java] [java] at org.eclipse.jdt.core.compiler.batch.BatchCompiler.compile(BatchCompiler.java:80)
> [java] [java] at org.eclipse.jdt.core.compiler.batch.BatchCompiler.compile(BatchCompiler.java:52)
> [java] [java] at org.eclipse.xtext.xtend2.compiler.batch.Xtend2BatchCompiler.preCompileStubs(Xtend2BatchCompiler.java:302)
> [java] [java] at org.eclipse.xtext.xtend2.compiler.batch.Xtend2BatchCompiler.compile(Xtend2BatchCompiler.java:220)
> [java] [java] at org.eclipse.xtext.xtend2.compiler.batch.Main.main(Main.java:46)
> [java] [java] Java Result: 1
>
> Since org.eclipse.jdt.internal.compiler.batch.Main and org.eclipse.jdt.core.compiler.batch.BatchCompiler are
> situated in the same bundle I have no clue about it.
>
> Tried to overcome with some memory tuning without any success.
>
> Do you guys have any idea?
>
> Christian
|
|
|
Powered by
FUDForum. Page generated in 0.05490 seconds