即使构建因ant而失败,如何获取类文件

时间:2016-10-07 19:17:26

标签: java eclipse ant

我有一个java项目,java文件超过2500,其中一些可能有编译问题。我需要生成类文件并路由到特定文件夹。即使有一些编译错误,其余的jave也会转向使用eclipse的类文件。

但我需要使用像ANT这样的构建工具进行编译,但是当构建失败时它会停止。 因此没有生成类文件。当项目使用ANT有一些编译错误时,有没有办法编译和生成。示例代码类似于

Traceback (most recent call last):
  File "/home/vmagent/python_vm_runtime/google/appengine/ext/vmruntime/meta_app.py", line 550, in GetUserAppAndServe
    app, mod_file = self.GetUserApp(script)
  File "/home/vmagent/python_vm_runtime/google/appengine/ext/vmruntime/meta_app.py", line 411, in GetUserApp
    app = _AppFrom27StyleScript(script)
  File "/home/vmagent/python_vm_runtime/google/appengine/ext/vmruntime/meta_app.py", line 271, in _AppFrom27StyleScript
    app, filename, err = wsgi.LoadObject(script)
  File "/home/vmagent/python_vm_runtime/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/home/vmagent/app/main.py", line 22, in <module>
    import firebase_helper
  File "/home/vmagent/app/firebase_helper.py", line 20, in <module>
    from Crypto.Util import asn1
ImportError: No module named Crypto.Util

0 个答案:

没有答案