什么是蚂蚁的属性值和物业位置之间的差异 [英] What‘s the difference between ant's property value and property location

查看:104
本文介绍了什么是蚂蚁的属性值和物业位置之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ant的配置文件 - build.xml文件有属性的元素。
而据官方-DOC,属性具有的属性值和位置。
但我不明白为什么我们需要的位置?
我可以设置路径为属性的值?然后,无需位置。

Ant's config file--build.xml has the property element. And according to the offical-doc,the property has the attributes-value and location. But I don't understand why we need location? Can I set the path as a value in property? Then no need for location.

推荐答案

位置,如果你想要做的相对路径中。

location is used if you want to do relative paths.

在这个例子中的通知,他们使用的位置。没有绝对的路径需要。
http://ant.apache.org/manual/using.html

notice in this example, they use location. no absolute path needed. http://ant.apache.org/manual/using.html

任一位置或值(互斥)可以使用,如果你正在做的绝对路径

either location or value (mutually exclusive) can be used if you're doing absolute paths

这篇关于什么是蚂蚁的属性值和物业位置之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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