gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 15:32:31 25 4
gpt4 key购买 nike

在我当前的谷歌应用程序项目中,我设置了两个源文件夹,用于生产代码的 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com