Maven - 如何替换其他位置的任何文件中的值? [英] Maven - How to replace value in any file in other location?

查看:62
本文介绍了Maven - 如何替换其他位置的任何文件中的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须替换文件中的值:test.xml该文件位置为:src/main/app.

I have to replace value in file: test.xml This file location is: src/main/app .

有可能吗?

推荐答案

可以根据 ${app.name} 更改属性.无需更改流程即可更改属性文件.

Properties could be changed based on the ${app.name}. There is no need to change flow to change property file.

<configuration-properties doc:name="Configuration properties" file="/var/mule/${MULE_ENV}/${app.name}/global.yaml"/>

<configuration-properties doc:name="Configuration properties" file="/var/mule/${MULE_ENV}/${app.name}/global.yaml" />

https://simpleflatservice.com/mule4/Properties.html

这篇关于Maven - 如何替换其他位置的任何文件中的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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