2015-11-18 31 views
1

我想更改xml值部分中的少数部分。 Augeas可以做到吗?是否有可能在Augeas中更改少部分值

对于如:

我想单独改变IP_ADDRESS在下面的XML。它已被放置在三个地方。可以做到吗?

<interfaces> 
    <interface name="management"> 
     <inet-address value="${jboss.bind.address.management:IP_ADDRESS}"/> 
    </interface> 
    <interface name="public"> 
     <inet-address value="${jboss.bind.address:IP_ADDRESS}"/> 
    </interface> 
    <interface name="unsecure"> 
     <inet-address value="${jboss.bind.address.unsecure:IP_ADDRESS}"/> 
    </interface> 
</interfaces> 

回答

1

单独使用Augeas,这不是(现在)可能的(但可能会一旦我们有原生的Lua支持)。目前,您需要使用Augeas绑定并自己解析值。

相关问题