google-app-engine - 我可以从 Java 中的谷歌应用引擎部署中排除源文件吗

标签 google-app-engine

在我当前的谷歌应用程序项目中,我设置了两个源文件夹,用于生产代码的 src 和用于 junit 测试等的 test。有什么方法可以指定只部署 src 文件夹,而 test 文件夹仍然可用于本地测试?

最佳答案

来自<resource-files>排在 Syntax表:

<exclude>

Files and directories matching patterns will not be uploaded or available to your application code. However, these files and directories will still be accessible to your application when running on the local Development Server. For more information, see Including and excluding files.

Example:

<resource-files>
  <include path="/**.xml" />
  <exclude path="/feeds/**.xml" />
</resource-files>

This example demonstrates how to designate all .xml files as resource files except those in the feeds/ directory and all of its subdirectories.

关于google-app-engine - 我可以从 Java 中的谷歌应用引擎部署中排除源文件吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9814414/

相关文章:

python - 错误值错误 : Property text is required

java - 有没有办法在 Eclipse 下的 GAE Java 开发服务器上禁用对 Runtime.checkRestricted 的调用?

android - 使用谷歌时出现 EOFException 端点

python - App Engine 开发服务器 : bad runtime process port ['' ] No module named google. appengine.dist27.threading

google-app-engine - Google Appengine 游标

java - 可以在沙箱中运行的 Mini-OSGi(如 AppEngine 或 WebStart)?

python - 谷歌应用引擎中的递归删除

google-app-engine - 为什么 Google App Engine python Blob 关心存储在其中的内容

google-app-engine - 我真的对导入所需的包感到困惑,但它的所有文件都被 nobuild_files 排除了

google-app-engine - 2012 年使用哪个 Java Web 框架进行 Google App Engine 开发?