Eclipse包括Java源代码文件与WAR中的类文件 [英] Eclipse including Java source code files with class files in WAR

查看:137
本文介绍了Eclipse包括Java源代码文件与WAR中的类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我选择将Eclipse(Juno)中的动态Web项目导出为WAR文件的选项时,所有.java文件将与.class文件一起部署到WEB-INF /类。我从来没有注意到这一点,所以我想知道我需要做什么来阻止这种情况发生。

When I choose the option to export my dynamic web project in Eclipse (Juno) as a WAR file, all of the .java files are being deployed to WEB-INF/classes along with the .class files. I've never noticed this happening before, so I was wondering what I needed to do to stop this from happening.

推荐答案

我无法在Juno上重现,但是我注意到有一个复选框名为导出源文件我假设你没有选中它,但如果没有,那可能就是这样。

I could not reproduce this on Juno, however I noticed there is a checkbox named "Export source files" I assume you have it unchecked, but if not, then this might be it.

这篇关于Eclipse包括Java源代码文件与WAR中的类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆