如何从属性文件向属性添加任何数字 [英] How to add any number to a property from a property file

查看:51
本文介绍了如何从属性文件向属性添加任何数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个财产

base.number = 100

base.number=100

在属性文件中.

我要根据要添加的值创建值102、103、105等.

I want to create values 102, 103, 105, etc, depending on the value to be added.

如何将数字添加到属性中并获得增加的价值?

How can I add the numbers to the property and get the added value?

推荐答案

Ant contrib具有

Ant contrib has a Math task. It can add numbers among other things. Which means you:

  1. 阅读属性
  2. 使用数学任务加数字

这篇关于如何从属性文件向属性添加任何数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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