Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ant-question: how to extend/concatenate a property with some additional text?
ant-question: how to extend/concatenate a property with some additional text? [message #330603] Tue, 05 August 2008 11:20 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Obtain the plugin where an editor is contained
Next Topic:How to add additional steps to a projects build?
Goto Forum:
  


Current Time: Sat Feb 08 16:34:23 GMT 2025

Powered by FUDForum. Page generated in 0.02735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top