GWT/GAE - excluding .symbolMap resource files

2019-06-08 11:19发布

I'm using GWT + AppEngine in java and I'm trying to make the deployment process exclude some files from the ones uploaded on the server. Specifically the .symbolMap files generated by the GWT (because the amount of space taken is too large). I fount this post: https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/Py-D0oV68fg that explains how to exclude them, but it does't work (the version deployed occupies the same amount of space). I tried all of these lines in my appengine-web.xml files:

<exclude path="WEB-INF/deploy/ebas/symbolMaps/**.symbolMap" />
<exclude path="/WEB-INF/deploy/ebas/symbolMaps/**.symbolMap" />
<exclude path="WEB-INF/deploy/ebas/symbolMaps/**.*" />
<exclude path="/WEB-INF/deploy/ebas/symbolMaps/**.*" />
<exclude path="WEB-INF/deploy/ebas/symbolMaps/**.symbolMap" />
<exclude path="/WEB-INF/deploy/ebas/symbolMaps/*" />

but it seams this isn't a solution. Is there a(another) way to tell the app engine deployment script to exclude those files?

1条回答
啃猪蹄的小仙女
2楼-- · 2019-06-08 11:43

.symbolMap files are created only when adding the -extra compiler argument, so you can just remove it when you compile to deploy.

check out the official documentation here, if you want to read more about it.

查看更多
登录 后发表回答