Hi!
I have a Project that builds perfectly in CW 10.7 but when trying to build from batch file with the ecd.exe the following problem happens:
"C:\Freescale\CW MCU v10.7\eclipse\ecd.exe" -build -project "%WORKSPACE%\Develop\Source\Applic" -cleanBuild
.
.
.
Builds binaries
java.lang.reflect.InvocationTargetException
at com.freescale.core.ide.util.WorkspaceUtil.createExistingProject(WorkspaceUtil.java:269)
at com.freescale.core.ide.autobuild.BuildProject.resolve(BuildProject.java:62)
at com.freescale.core.ide.autobuild.Arguments.resolveProjects(Arguments.java:106)
at com.freescale.core.ide.autobuild.BuildAdvisor.execute(BuildAdvisor.java:25)
at com.freescale.core.ide.autobuild.AutoBuildApp.start(AutoBuildApp.java:23)
at com.freescale.core.ide.commandLineDriver.Application.start(Application.java:59)
at com.freescale.core.ide.commandLineDriver.Application.start(Application.java:26)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:630)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:585)
at org.eclipse.equinox.launcher.Main.run(Main.java:1439)
Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid project description.
at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:193)
at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:54)
at org.eclipse.core.internal.resources.Project.create(Project.java:305)
at org.eclipse.core.internal.resources.Project.create(Project.java:287)
at com.freescale.core.ide.util.WorkspaceUtil.createExistingProject(WorkspaceUtil.java:246)
... 18 more
.
.
.
There seems to be some problems in the description of the Project.
Any ideas??
Hi Bengt,
I recommend you refer this article which includes -cleanBuild usage with example.
CodeWarrior 10 Command Line Interface – usage and examples
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------