ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof Kucybala <kkucyb...@echo.fr>
Subject Re: newbie question: variable scope
Date Tue, 11 Dec 2007 15:59:51 GMT
Don't know what Your ant file looks like, but I'd try to employ the 
antcontrib's antcallback task - it calls another target and lets it 
return a property (more than one actually) to the target, who made the 
call. Does that help?

Best regards,
Chris

Hudson Ansley wrote:
> I'm trying to use the discouraged "var" to keep track of updated files
> for a final upload step. It appears that when I change a variable in
> one target, that change is not reflected from another target. I
> imagine I am going about this the wrong way, so besides explaining why
> this might be happening, a suggestion for a different approach would
> also be welcome. Here is exactly what I'm doing
> 
> 1) conditionally compile from source (if source has changed)
> 
> 2) conditionally create a file using XSLT (if source changed)
> 
> 3) upload one or both of those files, or don't even bother to open a
> connection if neither has been updated.
> 
> #3 is where I'm having problems. I thought I could gather the
> respective files in a string in the targets for 1 & 2 and use that in
> this target, but that is where I am running into issues with changes
> made in a var in #1 and #2 not showing in #3
> 
> Thanks in advance for any help - I'm sure I'm missing something
> simple, but I did go over the help and search old messages before
> posting
> Regards,
> Hudson
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

-- 
Krzysztof Kucybala

Software Engineer
GFI Informatique for
Orange - France Telecom Group
790 avenue du docteur Maurice Donat
Batiment Marco Polo - D1
06250 Sophia-Antipolis
email: kkucybala@echo.fr
tel:   04.97.12.62.05
fax:   04.92.28.13.31
skype: krzysztof.kucybala

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


Mime
View raw message