从 Netbeans 6 中的 WAR 文件中排除文件夹
我有我认为简单的问题,但不知何故它造成了一些麻烦。 我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用了 src/** ,这似乎很有效。
I used src/** and that seems to be effective.