ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Use of environment properties
Date Thu, 11 Mar 2004 18:15:40 GMT
I don't know how to do this, but I would suggest looking at the source code for a task that
does do this, like <available>, and follow the same logic.

Good luck,

-Rob Anderson

> -----Original Message-----
> From: Christophe Demarey [mailto:Christophe.Demarey@lifl.fr]
> Sent: Thursday, March 11, 2004 9:57 AM
> To: user@ant.apache.org
> Subject: Use of environment properties
> 
> 
> Hi,
> 
> I want to set an environment property in my own ant task.
> I don't know the way to do this.
> Can someone help me?
> 
> It tried this :
>         org.apache.tools.ant.taskdefs.Property prop_task = null;
>         org.apache.tools.ant.taskdefs.Property env_task = null;
>        
>         env_task = new org.apache.tools.ant.taskdefs.Property();
>         env_task.setProject(getProject());
>         env_task.setEnvironment("env");
>         env_task.execute();
> 
>         prop_task = new org.apache.tools.ant.taskdefs.Property();
>         prop_task.setProject(getProject());
>         prop_task.setEnvironment("env");
>         prop_task.setName("env.LD_LIBRARY_PATH");
>         prop_task.setValue("mypath");
>         prop_task.execute();
> 
> but without success.
> 
> Thanks,
> Christophe.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


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


Mime
View raw message