2012-11-23 46 views
2

我正在嘗試在使用Ant的命令行上構建Eclipse Java項目。然後我會在Jenkins中使用它。我一直在使用ant4eclipse和相關的文檔和示例,但無法通過下面的錯誤。在計算器中最接近的東西是ant4eclipse classpath problem,但我無法弄清楚如何適應我的情況。有任何想法嗎?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.' 

回答

2

ant4eclipse不包含JDK 1.7所需的配置文件。 以下是我如何解決問題的方法: 在Eclipse的/ plugins目錄中的org.eclipse.osgi _ *。jar內可以找到新的JavaSE-1.7.profile和更新的profile.list。將這些文件複製到/ profiles下的ant4eclipse jar文件中,一切都應該正常

相關問題