Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Gibt es bei Ant "nested properties"?

Thread view: 
carsten_ - 10 Mar 2008 13:55 GMT
Hallo, Leute!

Ich bastel gerade an einem etwas größeren Ant-Skript und frage mich,
ob es "nested properties" gibt, d.h. ob ich einen Propertynamen aus 2
Properties erstellen kann. Ich möchte so etwas machen:

   <property name="foo" value="${bar.${baz}}" />

Eine kleiner Erläuterung:

Ich habe vorher aus einer Properties-Datei einige Properties
ausgelesen, alle in der Form

   bar.baz = wert1
   bar.quz = wert2

Ich will in meinem Skript aber nur einen von diesen Werten, und zwar
basieren auf den oben genannten Properties.

Hm, das klingt jetzt selbst für mich etwas verworren. Hat mich jemand
verstanden? %-)

Carsten
MCMicS - 10 Mar 2008 22:10 GMT
Hi Carsten,

ja, du kannst es bei Ant machen. Du hast die Möglichkeit, folgendes zu
machen.

    <property name="foo" value="${bar.baz}/${bar.quz}" />
Hoffe, ich konnte helfen.

MfG
Micha

carsten_ schrieb:
> Hallo, Leute!
>
[quoted text clipped - 19 lines]
>
> Carsten
MCMicS - 10 Mar 2008 22:11 GMT
Hi Carsten,

ja, du kannst es bei Ant machen. Du hast die Möglichkeit, folgendes zu
machen.

    <property name="foo" value="${bar.baz}/${bar.quz}" />
Hoffe, ich konnte helfen.

MfG
Micha

carsten_ schrieb:
> Hallo, Leute!
>
[quoted text clipped - 19 lines]
>
> Carsten


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.