我正在尝试使用 Ant 在命令行中构建一个 Eclipse Java 项目。然后我将在 Jenkins 中使用它。我一直在使用带有相关文档和示例的 ant4eclipse,但无法克服以下错误。stackoverflow 中最接近的是ant4eclipse 类路径问题,但我无法弄清楚如何使其适应我的情况。有任何想法吗?
BUILD FAILED
/home/phil/git/backend-testing/backend-tests/build.xml:31:
The following error occurred while executing this line:
/home/phil/git/backend-testing/backend-tests/a4e-jdt-macros.xml:77:
org.ant4eclipse.lib.core.exception.Ant4EclipseException:
Exception whilst resolving the classpath entry '[EclipseClasspathEntry: path:
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVM
ype/JavaSE-1.7 entryKind: 0 outputLocation: null exported: false]' of project
'com.paralant.paravise.model': 'A precondition has been violated: The parameter
'javaProfile' is not supposed to be null.'