ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Macro param issue with dirname
Date Wed, 08 Dec 2004 18:51:54 GMT
Don't worry about this. It's just IntelliJ which can't deal with it, and it's perfectly valid
Ant code. <macrodef> doesn't assign any 'types' to its attributes, it's the tasks used
within that convert the string used to whatever type they need. The same attribute can even
be interpreted differently by several tasks inside the macro. --DD

________________________________

From: Laran Evans [mailto:lc278@cornell.edu]
Sent: Wed 12/8/2004 12:47 PM
To: Ant Users List
Subject: Macro param issue with dirname



So what's wrong with this? Intellij tells me that the @{root} in
file="@{root}" on line 4 is not allowed.

Does the string value of the param not properly get interpreted as a file?

   <macrodef name="auto-deploy-web-app">
     <attribute name="root"/>
     <sequential>
       <dirname property="auto-deploy-app-name" file="@{root}"/>
       <copy todir="${my.dir.auto-deploy}">

       </copy>
     </sequential>
   </macrodef>



Mime
View raw message