ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Demarey <Christophe.Dema...@lifl.fr>
Subject Use of environment properties
Date Thu, 11 Mar 2004 17:57:16 GMT
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


Mime
View raw message