Recognize build.xml as Ant file
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- 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
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
parson AG
www.parson-europe.com
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Recognize build.xml as Ant file
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- 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
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
parson AG
www.parson-europe.com
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Recognize build.xml as Ant file
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- 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
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service