为什么NetBeans重新创建“旧”部署包的文件夹? [英] Why does NetBeans recreate "old" packages' folders on deploy?

查看:208
本文介绍了为什么NetBeans重新创建“旧”部署包的文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在NetBeans中使用java Web应用程序我已多次重构我的包。现在,当IDE构建项目时,我在 build \web \WEB-INF \classes \ 中找到名为old软件包的空文件夹。说旧是指我已经删除,移动或重命名的那些包。

Working with a java web application in NetBeans I've refactored my packages several times. Now when the IDE builds the project, I find empty folders with the names of "old" packages in build\web\WEB-INF\classes\. Saying "old" I mean those packages I have already deleted, moved or renamed.

我查看了应用程序文件夹中的所有文件,搜索了这些旧名称,但未找到任何发生的情况。 NetBeans从哪里获取它?

I've looked through all the files in the application folder, searching for these "old" names, but failed to find any occurance at all. Where does NetBeans take it from?

我应该补充一点,这些文件夹是在 Deploy 命令上创建的,而不是 Build 。所以可能它是Apache Tomcat ...

I should add, that these folders are created on Deploy command, not Build. So probably it's Apache Tomcat...

推荐答案

检查IDE的输出窗口,我发现在部署它时使用的配置来自 c:\Users \<当前用户> \ ..netbeans \\ 0.0 \ _var \ 。在这个目录中,我找到了 cache 文件夹并将其删除。我还删除了我的项目的 build 文件夹。

Examining the output window of the IDE, I found that while deploying it used configuration from c:\Users\<current user>\.netbeans\7.0\var\. In this directory I found cache folder and removed it. Also I deleted my project's build folder.

重建和部署后,IDE仅为现有软件包创建了文件夹。我希望这就是它,那些旧的存储在我删除的IDE缓存中。

After rebuilding and deploying, IDE created folders for the existing packages only. I do hope that this is it and those old ones were stored in the IDE cache I deleted.

PS:删除缓存之前文件夹,应关闭IDE,否则在关闭打开的解决方案时可能会出现问题。

P.S.: before removing the cache folder, one should close the IDE, or it may have problems while closing the open solutions.

这篇关于为什么NetBeans重新创建“旧”部署包的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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