简体   繁体   English

使用ant加载yaml属性文件

[英]Loading yaml property file with ant

Is there any built-in way to parse a yaml property file in ant? 有没有内置的方法来解析ant中的yaml属性文件?

When searching for a solution I only find the LoadProeprties task with which I could only load files in the .properties format: https://ant.apache.org/manual/Tasks/loadproperties.html 在寻找解决方案时,我只能找到只能以.properties格式加载文件的LoadProeprties任务: https : LoadProeprties

No. Ant only supports loading Properties and XML files (the latter via XMLProperty ). 。Ant仅支持加载属性和XML文件(后者通过XMLProperty )。 There are numerous ways to transform YAML into a Properties file though. 尽管有很多方法可以将YAML转换为Properties文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM