English 中文(简体)
安特财产档案中的绝对路径
原标题:Absolute paths in Ant property file

I have a property file containing absolute paths to jars etc. When using these properties they are prefixed with the basedir specified in the build file. How do I get the absolute path?

建设。 财产:

mylib=/lib/mylib.jar

建设:

<project name="myproject" basedir=".">
  <property file="build.properties"/>
  ...${mylib}...
</project>
最佳回答

3. 请研究财产问题:

rel=“noretinger” http://ant.apache.org/manual/Tasks/property.html

通过使用地点特性,例如:

<property name="my.abs.path" location="my.relative.path"/>
<echo message="My abs.path is : ${my.abs.path}"/>

这将把任何相对特性扩大到其完全绝对道路上。 当然,这条道路相对地扩大到项目基地。

问题回答

暂无回答




相关问题
How can I edit a mutable property in Objective C?

I am trying to edit a mutable array from a property and can t seem to directly make it work. Consider the following code that seems to work, but seems also very inefficient; I have to copy the whole ...

Implicit conversion from void to XmlDocument

Probably a stupid question, but I m quite new to the whole "get-and-set-property"-kind of programming; I keep getting a compiling-error on this part of my code; private string _File = "Session.xml"; ...

Property binding across controls in WPF

I have two UserControls that I want to display in a Window. The value of the property "SelectedItem" of the first UserControl should be set to the second UserControl s "SelectedItem" property. How do ...

@staticmethod with @property

I want Stats.singleton.twitter_count += 1 and I thought I could do class Stats: singleton_object = None @property @staticmethod def singleton(): if Stats.singleton_object: ...

热门标签