Headless build trouble

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Headless build trouble

跳至解决方案
1,337 次查看
davidsherman
Senior Contributor I

This might be a question for Erich Styger, but I've followed his example on doing headless builds.  When I tried to run it though, I'm getting an error.  When I look at the source, it says:

 

java.lang.IllegalStateException: The platform metadata area could not be written: C:\KDSProjects\Git\C3MainPM\.c:\KDSProjects\.metadata.  By default the platform writes its content

under the current working directory when the platform is launched.  Use the -data parameter to

specify a different content area for the platform.

 

Windows seems to show that .metadata is read only, but I can't seem to make it writable, even though KDS is not open.

 

I'm trying to launch the build using:

 

c:\freescale\KDS_3.0.0\eclipse\eclipsec -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data .c:\KDSProjects -build "C3MainPM/release"

标签 (1)
0 项奖励
回复
1 解答
1,106 次查看
BlackNight
NXP Employee
NXP Employee

Just a wild guess, try to pass the .ini like below:

c:\freescale\kds_3.0.0\eclipse\eclipsec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data .\wsp_kds3.0.0 -build MyProject --launcher.ini c:\Freescale\KDS_3.0.0\eclipse\kinetis-design-studio.ini --launcher.suppressErrors

Erich

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,107 次查看
BlackNight
NXP Employee
NXP Employee

Just a wild guess, try to pass the .ini like below:

c:\freescale\kds_3.0.0\eclipse\eclipsec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data .\wsp_kds3.0.0 -build MyProject --launcher.ini c:\Freescale\KDS_3.0.0\eclipse\kinetis-design-studio.ini --launcher.suppressErrors

Erich

0 项奖励
回复
1,106 次查看
davidsherman
Senior Contributor I

Thank you Erich!  Seems the root of the problem was I had mistakenly put in the project directory instead of the workspace.  It's building properly now.

0 项奖励
回复