Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » headless pde build : InvocationTargetException in generated build.xml
headless pde build : InvocationTargetException in generated build.xml [message #547740] Mon, 19 July 2010 10:06 Go to next message
Eclipse UserFriend
I am trying to set up a headless build of my product and it works for
the first few plugins (everything gets compiled, I have the classfiles
in the @dot directory), but then at some point I get

path/to/generated/buildxml/of/pluginxy/build.xml:251:
java.lang.reflect.InvocationTargetException

I marked line 251 in the generated script below with a leading 251:

<pathelement
path=" ../../../target/plugins/org.eclipse.xtext.ui_1.0.0.v20100616 1118.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.emf.ecore.edit_2.6.0.v20 100614-1136.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.emf.edit_2.6.0.v20100614 -1136.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.emf.ecore.change_2.5.0.v 20100521-1846.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.emf.edit.ui_2.6.0.v20100 614-1136.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.emf.common.ui_2.6.0.v201 00614-1136.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.xtext.ui.shared_1.0.0.v2 01006161118.jar "/>
<pathelement
path=" ../../../target/plugins/org.eclipse.xtext.builder_1.0.0.v201 006161118.jar "/>
</path>
<!-- compile the source code -->
251: <javac destdir="${build.result.folder}/@dot"
failonerror="${javacFailOnError}" verbose="${javacVerbose}"
debug="${javacDebugInfo}" includeAntRuntime="no"
bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}"
target="${bundleJavacTarget}" errorProperty="compilation.error.occured"
>
<compilerarg line="${compilerArg}"
compiler="${build.compiler}"/>
<classpath refid="@dot.classpath" />
<src path="src/" />
<src path="src-gen/" />
<compilerarg
value="@${basedir}/javaCompiler...args"
compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
<compilerarg line="-log
&apos;${build.result.folder}/@dot${logExtension}&apo s; "
compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
</javac>
<antcall target="checkCompilationResults"/>
<!-- Copy necessary resources -->
<copy todir="${build.result.folder}/@dot"
failonerror="true" overwrite="false">
<fileset dir="src/">
<exclude name="**/*.java"/>
<exclude name="**/package.htm*"/>
</fileset>
<fileset dir="src-gen/">
<exclude name="**/*.java"/>
<exclude name="**/package.htm*"/>
</fileset>
</copy>
</target>

the target's name is @dot

I have no clue how to debug this. Any help would be highly appreciated!

Thanks,

Tobi
Re: headless pde build : InvocationTargetException in generated build.xml [message #547826 is a reply to message #547740] Mon, 19 July 2010 13:19 Go to previous message
Eclipse UserFriend
You can try running ant with -verbose to see if you get more error
information.

That is the call to the compiler. It is using the JDT compiler
"org.eclipse.jdt.core.JDTCompilerAdapter", make sure the JDT and its
dependencies are in your eclipse install that is running the build.

-Andrew
Tobias Hoppenthaler wrote:

> I am trying to set up a headless build of my product and it works for
> the first few plugins (everything gets compiled, I have the classfiles
> in the @dot directory), but then at some point I get
>
> path/to/generated/buildxml/of/pluginxy/build.xml:251:
> java.lang.reflect.InvocationTargetException
>
> I marked line 251 in the generated script below with a leading 251:
>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.xtext.ui_1.0.0.v20100616 1118.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.ecore.edit_2.6.0.v20 100614-1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.edit_2.6.0.v20100614 -1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.ecore.change_2.5.0.v 20100521-1846.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.edit.ui_2.6.0.v20100 614-1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.common.ui_2.6.0.v201 00614-1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.xtext.ui.shared_1.0.0.v2 01006161118.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.xtext.builder_1.0.0.v201 006161118.jar "/>
> </path>
> <!-- compile the source code -->
> 251: <javac destdir="${build.result.folder}/@dot"
> failonerror="${javacFailOnError}" verbose="${javacVerbose}"
> debug="${javacDebugInfo}" includeAntRuntime="no"
> bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}"
> target="${bundleJavacTarget}" errorProperty="compilation.error.occured"
> >
> <compilerarg line="${compilerArg}"
> compiler="${build.compiler}"/>
> <classpath refid="@dot.classpath" />
> <src path="src/" />
> <src path="src-gen/" />
> <compilerarg
> value="@${basedir}/javaCompiler...args"
> compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
> <compilerarg line="-log
> &apos;${build.result.folder}/@dot${logExtension}&apo s; "
> compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
> </javac>
> <antcall target="checkCompilationResults"/>
> <!-- Copy necessary resources -->
> <copy todir="${build.result.folder}/@dot"
> failonerror="true" overwrite="false">
> <fileset dir="src/">
> <exclude name="**/*.java"/>
> <exclude name="**/package.htm*"/>
> </fileset>
> <fileset dir="src-gen/">
> <exclude name="**/*.java"/>
> <exclude name="**/package.htm*"/>
> </fileset>
> </copy>
> </target>
>
> the target's name is @dot
>
> I have no clue how to debug this. Any help would be highly appreciated!
>
> Thanks,
>
> Tobi
Re: headless pde build : InvocationTargetException in generated build.xml [message #606285 is a reply to message #547740] Mon, 19 July 2010 13:19 Go to previous message
Eclipse UserFriend
You can try running ant with -verbose to see if you get more error
information.

That is the call to the compiler. It is using the JDT compiler
"org.eclipse.jdt.core.JDTCompilerAdapter", make sure the JDT and its
dependencies are in your eclipse install that is running the build.

-Andrew
Tobias Hoppenthaler wrote:

> I am trying to set up a headless build of my product and it works for
> the first few plugins (everything gets compiled, I have the classfiles
> in the @dot directory), but then at some point I get
>
> path/to/generated/buildxml/of/pluginxy/build.xml:251:
> java.lang.reflect.InvocationTargetException
>
> I marked line 251 in the generated script below with a leading 251:
>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.xtext.ui_1.0.0.v20100616 1118.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.ecore.edit_2.6.0.v20 100614-1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.edit_2.6.0.v20100614 -1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.ecore.change_2.5.0.v 20100521-1846.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.edit.ui_2.6.0.v20100 614-1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.emf.common.ui_2.6.0.v201 00614-1136.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.xtext.ui.shared_1.0.0.v2 01006161118.jar "/>
> <pathelement
>
path=" ../../../target/plugins/org.eclipse.xtext.builder_1.0.0.v201 006161118.jar "/>
> </path>
> <!-- compile the source code -->
> 251: <javac destdir="${build.result.folder}/@dot"
> failonerror="${javacFailOnError}" verbose="${javacVerbose}"
> debug="${javacDebugInfo}" includeAntRuntime="no"
> bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}"
> target="${bundleJavacTarget}" errorProperty="compilation.error.occured"
> >
> <compilerarg line="${compilerArg}"
> compiler="${build.compiler}"/>
> <classpath refid="@dot.classpath" />
> <src path="src/" />
> <src path="src-gen/" />
> <compilerarg
> value="@${basedir}/javaCompiler...args"
> compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
> <compilerarg line="-log
> &apos;${build.result.folder}/@dot${logExtension}&apo s; "
> compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
> </javac>
> <antcall target="checkCompilationResults"/>
> <!-- Copy necessary resources -->
> <copy todir="${build.result.folder}/@dot"
> failonerror="true" overwrite="false">
> <fileset dir="src/">
> <exclude name="**/*.java"/>
> <exclude name="**/package.htm*"/>
> </fileset>
> <fileset dir="src-gen/">
> <exclude name="**/*.java"/>
> <exclude name="**/package.htm*"/>
> </fileset>
> </copy>
> </target>
>
> the target's name is @dot
>
> I have no clue how to debug this. Any help would be highly appreciated!
>
> Thanks,
>
> Tobi
Previous Topic:headless pde build : InvocationTargetException in generated build.xml
Next Topic:PDEBuild Missing host org.eclipse.equinox.launcher_[1.0.0,1.2.0)
Goto Forum:
  


Current Time: Wed Jul 09 09:42:48 EDT 2025

Powered by FUDForum. Page generated in 0.03750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top