editing Ant buildfiles - custom tasks

Having trouble installing Oxygen? Got a bug to report? Post it all here.
maltit
Posts: 7
Joined: Thu Jan 26, 2006 4:26 pm

editing Ant buildfiles - custom tasks

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Remove the default schema association or edit the Ant DTD

Post 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
Post Reply