ant-question: how to extend/concatenate a property with some additional text? [message #330603] |
Tue, 05 August 2008 11:20  |
Eclipse User |
|
|
|
Sorry for abusing this forum to pose an ant-question:
For my .jar signing build.xml target I want to define a property that is
an extension of an existing environment variable plus an additional
path-fragment and file name, i.e. I want to use java's standard property
"user.home" (which is defined when calling ant) and append additional
stuff to it. How does one do that?
I tried:
<property name="keyStore" value="${user.home}My
Documents/AppletSignerKeystore" />
<property name="keyStore" value="${user.home}/My
Documents/AppletSignerKeystore" />
<property name="keyStore" value="${user.home:My
Documents/AppletSignerKeystore}" />
But when I echo these using
<echo>user-home: "${user.home}" - keyStore: "${keyStore}" </echo>
all I ever get is:
[echo] user-home: "C:\Documents and Settings\mmo" - keyStore: "\My
Documents\AppletSignerKeystore"
I.e., the value of "user.home" is obviously defined, but it is
apparently NOT resolved, when specified within the value argument. How
can I concatenate these values and assign it to a property to later use
in the jarsign-command? Could some ant crack maybe provide me with a
hint how to do that?
Michael
|
|
|
Re: ant-question: how to extend/concatenate a property with some additional text? [message #330604 is a reply to message #330603] |
Tue, 05 August 2008 11:36  |
Eclipse User |
|
|
|
Michael Moser wrote:
> Sorry for abusing this forum to pose an ant-question:
> ...
Never mind! Problem solved. From earlier experiments I still had a
Property with that false value defined on the Run as => Ant build... =>
Properties tab.
Obviously the properties defined on that tab overrule those defined in
the build.xml file itself and so all my attempts to concatenate the two
were in vain...
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.02735 seconds