ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <shenne...@goldenhourdata.com>
Subject RE: Is there a limited number of level to variable references in a property file ... ?
Date Tue, 21 Oct 2003 15:17:41 GMT
  scr = ${basedir}/source

  ^ "src"  not "scr"

-----Original Message-----
From: Thomas Lionel SMETS [mailto:tsmets@netscape.net] 
Sent: Tuesday, October 21, 2003 8:12 AM
To: ant-user@jakarta.apache.org
Subject: Is there a limited number of level to variable references in a property file ...
?


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 !)

I seems that I cannot use "variables" in the property file above a certain number... My property
file is as follows : 
[code]
  scr = ${basedir}/source
  a = ${src}/a
  b = ${a}/b
  c = ${b}/c
  d = ${c}/d
  e = ${d}/e
  f = ${e}/f
  g = ${f}/g
[/code]
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 :
[code]
<?xml version="1.0" encoding="UTF-8"?>

<project name="NimTest" 
         default="echo" 
         basedir="..">

    <property file="./script/Test.properties" />
        
 <target name="echo">
    <echo>
    Shows all the system variables
    *******************************
    basedir = ${basedir}
    src = ${src}
    a = ${a}
    b = ${b}    
    c = ${c}    
    d = ${d}    
    e = ${e}    
    f = ${f}    
    g = ${g}            
    </echo>
 </target>
</project>
[/code]

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,

C:.
│   .classpath
│   .cvsignore
│   .project
│   .vcm_meta
│
+---build
│
+---config
│   │   log4j.properties
│   │
│   L---CVS
│           Entries
│           Repository
│           Root
│
+---CVS
│       Entries
│       Repository
│       Root
│
+---data
│   │   CloudIds.txt
│   │   TtpIds.txt
│   │
│   L---CVS
│           Entries
│           Repository
│           Root
│
+---lib
│   │   classes12.zip
│   │   junit.jar
│   │   rowset.jar
│   │
│   L---CVS
│           Entries
│           Repository
│           Root
│
+---script
│   │   Test.properties
│   │   TestBuild.xml
│   │
│   L---CVS
│           Entries
│           Repository
│           Root
│
L---source
    L---a
        L---b
            L---c
                L---d
                    L---e
                        L---f
                            L---g

-- 
 
Thomas SMETS 
rue J. Wytsmanstraat 62
1050 Brussels



__________________________________________________________________
McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire
computer. Get your free
trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message