从 Netbeans 6 中的 WAR 文件中排除文件夹

发布于 2024-09-06 21:03:38 字数 446 浏览 3 评论 0原文

我有我认为简单的问题,但不知何故它造成了一些麻烦。 我在 Netbeans 中有 WAR 项目,内容如下所示:

  • WEB-INF
  • images
  • lib
  • src
  • stylesheets

现在,文件夹“src”包含一些其他带有 javascript 代码的文件夹,这些文件夹在构建过程中被缩小并放置在“lib”目录中。

显然,由于 js 现在已缩小并压缩了“src”文件夹,并且 WAR 文件中不再需要它的内容,因此我决定将其从 WAR 文件中排除。我转到“属性”->“构建”->“打包”,这就是我的问题开始的地方。

我不知道应该使用什么掩码来排除“src”及其内容。尝试过 **/src/. 但没有运气。

你能指出我正确的方向吗?

谢谢, 格雷格

I have I think simple problem, but somehow it's causing some trouble.
I have WAR project in Netbeans, and the contents look like this:

  • WEB-INF
  • images
  • lib
  • src
  • stylesheets

Now, folder 'src' contains some other folders with javascript code, that is minified during build process and placed in 'lib' directory.

Oviously as js is now minified and compressed 'src' folder and it's contents are no longer needed in WAR file, so I decided to exclude it from WAR file. I went to Properties->Build->Packaging and this is where my problem starts.

I can't figure out what mask should I use there to exclude 'src' and it's contents. Tried **/src/. but no luck.

Could you point me in the right direction?

Thanks,
Greg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如梦 2024-09-13 21:03:38

我使用了 src/** ,这似乎很有效。

I used src/** and that seems to be effective.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文