ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Bridges" <sbrid...@smgtec.com>
Subject getting a macro attribute in a script
Date Sat, 06 Mar 2004 01:38:26 GMT
How do you get the value of a macro's attribute from within a script.
 
My build file looks like,
 
            <macrodef name="replaceClientConfig"
id="replaceClientConfig_id">
                        <attribute name="config.file"/>
                        <sequential>
                                    <script language="javascript">
                        
                                                <![CDATA[
                                                
                                                //echo =
project.createTask("echo");
 
//echo.setMessage(replaceClientConfig_id.toString());
                                                //echo.perform();
                                                
                                                config_file  = ???
 
 
I want to set the config_file variable to the value of the config.file
attribute.
 
Thanks,
 
Sean
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message