Recognize build.xml as Ant file

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Recognize build.xml as Ant file

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Recognize build.xml as Ant file

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Recognize build.xml as Ant file

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Recognize build.xml as Ant file

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Recognize build.xml as Ant file

Post by Frank Ralf »

Thanks for this information, Radu.

Frank
Frank Ralf
parson AG
www.parson-europe.com
Post Reply