Page 1 of 1

editing Ant buildfiles - custom tasks

Posted: Fri Apr 21, 2006 2:23 pm
by maltit
I find it very helpful that the editor is aware of the syntax for Ant buildfiles. However, whenever I call a custom task that has been defined using <taskdef>, the editor highlights this as an error.

Is there any way to get around this, aside from disabling check-as-you-type altogether?

thanks,
Oli

Remove the default schema association or edit the Ant DTD

Posted: Fri Apr 21, 2006 4:57 pm
by sorin_ristache
Hello,

Remove the default schema association for Ant build files from Options -> Preferences -> Editor / Default Schema Association (the association for the project element) or edit the Ant DTD specified in that association ([oXygen-install-folder]/frameworks/ant/ant.dtd) by adding declarations for your custom tasks.

Regards,
Sorin