Page 1 of 1
Recognize build.xml as Ant file
Posted: Fri May 16, 2014 2:02 pm
by Frank Ralf
Hi,
Of course there are many kinds of build files around, but can I make oXygen recognize any build.xml file as being an Ant file by default?
TIA
Frank
Re: Recognize build.xml as Ant file
Posted: Fri May 16, 2014 3:26 pm
by Radu
Hi Frank,
Could you give us more details?
In the Oxygen Preferences->"Document Type Association" page you can edit the "ANT" document type. This document type has a set of association rules. Right now all XML documents which have <project> as root element are considered ANT build files so this should be enough for you. You can also modify the association rule and set a specific file name pattern something like *build*.xml but I don't think this is necessary, all ANT build files should have <project> as the root element name.
Oxygen 16.0 which we plan to release in a week or two will have major improvements for ANT editing and validation.
Regards,
Radu
Re: Recognize build.xml as Ant file
Posted: Fri May 16, 2014 3:45 pm
by Frank Ralf
Hi Radu, thanks for the quick reply.
You are right, having <project> as root element should be enough to identify an Ant file.
However, I was wondering, because when opening for example [Oxygen XML Author 15 program folder]\frameworks\dita\DITA-OT\build.xml, Xerces is complaining about wrong parent elements, for example for <isset>, <dita-ot-fail> and <equals>. But that looks more like a DTD/Schema issue.
Kind regards,
Frank
Re: Recognize build.xml as Ant file
Posted: Fri May 16, 2014 4:37 pm
by Radu
Hi Frank,
Indeed Oxygen 15.2 and older report validation errors on ANT build files based on a specific schema so they might incorrectly report valid constructs as invalid.
As I said Oxygen 16.0 which we plan to release in a couple of weeks will have huge improvements in this regard and will validate ANT build files using the ANT engine itself.
Regards,
Radu
Re: Recognize build.xml as Ant file
Posted: Fri May 16, 2014 5:31 pm
by Frank Ralf
Thanks for this information, Radu.
Frank