Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Thomas Smets
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a typo in your properties file:
scr = ${basedir}/source
should be
src = ${basedir}/source
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic