导出的eclipse插件项目抛出../build.xml不存在错误

时间:2013-07-21 23:46:08

标签: java eclipse ant eclipse-plugin build.xml

我正在尝试将Eclipse插件项目导出为独立程序(RCP)。程序在eclipse上运行正常,但是当我导出它时,会抛出以下错误。基本上,堆栈跟踪显示没有build.xml文件。

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Caused by: Buildfile: /Applications/eclipse/Eclipse.app/Contents/MacOS/build.xml does not exist
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.parseBuildFile(InternalAntRunner.java:337)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:642)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537)
    ... 19 more

在我的eclipse项目中,我自动生成了build.xml文件,并确认它存在于项目中。问题是为什么它不与其他所需的插件文件和文件夹一起导出?一分钱给你的想法?

0 个答案:

没有答案