In Eclipse I wanted to delete set of class files and build once again.
我试图删除一个文件并在刷新项目和工作场所后再次尝试构建它不起作用。
但是,如果我在相关的 .java 文件中进行虚拟编辑并立即构建整个项目,它会生成已删除的类文件。
我的问题与 1000 或 n 个文件的情况相同,我无法通过 Dummy Edit 做同样的事情,请让我知道该怎么做。
从构建文件夹中删除文件后构建时的问题是它尝试加载已删除的文件但这些文件在那里不可用。所以在Eclipse .log
文件中它说找不到类文件。
请帮我解决这个问题。在此先感谢。
来自 Eclipse .log 文件的示例日志:
!ENTRY org.eclipse.jst.server.tomcat.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Publishing failed with multiple errors
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\axis-ant.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\eclipselink.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\postgresql.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\sqljdbc4.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
!MESSAGE File not found: D:\WorkPlace\amec\build\classes\ecnet\rd\helper\AMECGRNHelper1.class.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
!MESSAGE File not found: D:\WorkPlace\amec\build\classes\ecnet\rd\helper\AMECGRNHelper2$1.class.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
!MESSAGE File not found: D:\WorkPlace\amec\build\classes\ecnet\rd\helper\AMECGRNHelper2.class.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815