在app engine Java中排除war目录中的文件夹

在app engine Java中排除war目录中的文件夹,java,google-app-engine,Java,Google App Engine,我在appenginejava项目的war文件夹中有node\u模块文件夹。我不想将此文件夹部署到app engine中。所以我试着跟着 <static-files> <exclude path="/node_modules/" /> </static-files> 及 两者都不起作用。如何排除文件夹?对于.png文件,请尝试: <static-files> <exclude path="/node_modules/**

我在appenginejava项目的
war
文件夹中有
node\u模块
文件夹。我不想将此文件夹部署到app engine中。所以我试着跟着

<static-files>
   <exclude path="/node_modules/" />
</static-files>


两者都不起作用。如何排除文件夹?

对于.png文件,请尝试:

<static-files>
   <exclude path="/node_modules/**.png" />
</static-files>


source

将此文件夹从静态资源文件中排除:


...
...
...
...

但我的文件夹中没有png文件。它有不同类型的文件。我想排除文件夹(node_modules)本身。png只是一个例子。将其替换为您拥有的扩展名。但是文件夹具有不同类型的文件。该文件夹仅用于生成前端。因此,我无法指定文件的扩展名。从我给出的链接来看:'在模式中,*表示文件或目录名中任何字符的零个或多个,**表示路径中的零个或多个目录'。所以,试试看,我检查了这个:它似乎起作用了
<static-files>
   <exclude path="/node_modules/**.png" />
</static-files>