• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there a limited number of level to variable references in a property file ... ?

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the problem, I like a project to have the following structure : See below.
Now, my Build.xml (in this case 'TestBuild.xml') always referes to a property-file where most the properties are defined (One coul have gessed that !)
It seems that I cannot use "variables" in the property file above a certain number...
My property file is as follows :
I, of course, created the directories on the FileSystem.
I seems that I can never show the value of the variable ${src}... Can some one hint me towards the solution ?
Here is the Build file :

Outcome of the build is :
[pre]
Arguments:
Shows all the system variables
*******************************
basedir = C:\Program Files\IBM\WebSphere Studio\workspace\NimTest
src = ${src}
a = ${src}/a
b = ${src}/a/b
c = ${src}/a/b/c
d = ${src}/a/b/c/d
e = ${src}/a/b/c/d/e
f = ${src}/a/b/c/d/e/f
g = ${src}/a/b/c/d/e/f/g
[/pre]
Tia,
\T,
Tree command executed on the File system returns :

[ October 21, 2003: Message edited by: Thomas SMETS ]
[ October 21, 2003: Message edited by: Thomas SMETS ]
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have a typo in your properties file:
scr = ${basedir}/source
should be
src = ${basedir}/source
reply
    Bookmark Topic Watch Topic
  • New Topic