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:[EMAIL PROTECTED] 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>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]