[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    includesfile won't de-reference properties...
From:       "Jason Rosenberg" <jason () squaretrade ! com>
Date:       2000-11-29 8:03:44
[Download RAW message or body]

I am wondering why a file referred to by a "includesfile" attribute
won't allow specifying patterns with embedded property references...

While I can say in an include tag:

<include="${buildDir}/test.java"/>

It won't work to have the same thing in an includesfile, even though
the doc says that each line of an includesfile file is interpreted as
an include pattern.  So, it seems to me that if I have an includesfile
with the following line:

${buildDir}/test.java

It should work the same as if I had specified the above include statement.
The property 'buildDir' should be evaluated at the time the includesfile
is referenced as part of a patternset or fileset, etc.

Any comments?

Jason

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am wondering why a file referred to by a 
"includesfile" attribute</FONT></DIV>
<DIV><FONT face=Arial size=2>won't allow specifying patterns with embedded 
property references...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>While I can say in an include tag:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&lt;include="${buildDir}/test.java"/&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It won't work to have the same thing in an 
includesfile, even though</FONT></DIV>
<DIV><FONT face=Arial size=2>the doc says that each line of an includesfile file 
is interpreted as</FONT></DIV>
<DIV><FONT face=Arial size=2>an include pattern.&nbsp; So, it seems to me that 
if I have an includesfile</FONT></DIV>
<DIV><FONT face=Arial size=2>with the following line:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>${buildDir}/test.java</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It should work the same as if I had specified the 
above include statement.</FONT></DIV>
<DIV><FONT face=Arial size=2>The property 'buildDir' should be evaluated at the 
time the includesfile</FONT></DIV>
<DIV><FONT face=Arial size=2>is referenced as part of a patternset or fileset, 
etc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any comments?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jason</FONT></DIV></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic