如何触发本地构建中的yaml文件的处理? [英] How to trigger processing of yaml files in local build?

查看:162
本文介绍了如何触发本地构建中的yaml文件的处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个GAE / Java应用程序,今天我读了关于使用app.yaml,queue.yaml等更简单地指定值进入web.xml appengine-web.xml。以前我一直在手动构建这些.xml文件。



所以,我创建了一个app.yaml和一个queue.yaml。现在,我如何将它们挂接到我的构建中(包括Eclipse和Maven),以便它们生成正确的.xml输出文件?解析方案

好吧,我想出了这是如何工作的。在本地开发环境中,处理 app.yaml 来生成 web.xml appengine -web.xml 当您运行 dev_appserver.sh (或Windows上的.cmd)时。因此,在构建期间生成它们并不是真的有必要。



生成这些用于生产用途的文件是在执行 appconfg.sh/.cmd 时执行的。


I'm working on a GAE/Java app, and today I read about using app.yaml, queue.yaml, etc. to more simply specify values to go into web.xml, appengine-web.xml. Previously I have been building those .xml files myself by hand.

So, I created an app.yaml and a queue.yaml. Now, how do I hook them into my build (both Eclipse and maven) so that they generate the correct .xml output files?

解决方案

OK, I figured out how this works. In the local development environment, app.yaml is processed to generate web.xml and appengine-web.xml when you run dev_appserver.sh (or .cmd on Windows). Thus it isn't really necessary to generate them during the build.

The generation of these files for production use is performed when you execute appconfg.sh/.cmd.

这篇关于如何触发本地构建中的yaml文件的处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆