ant build script pretty print

<oXygen/> general issues.
bloodnok
Posts: 8

ant build script pretty print

Fri May 25, 2018 6:48 pm

this is a really minor issue: i've a number of ant build.xml scripts. for some of them, oxygenxml pretty prints variables (${varname}. for others it doesn't. copy&pasting a string containing a variable is pretty printed when the target file has been displaying its variable that way and not when the target hasn't. i can't see any difference between the scripts that oxygenxml pretty prints and the ones it doesn't. what determines if the app pretty prints ant build variables? the pretty print makes it slightly easier to see variables: how can i get its behaviour consistent for all my build files?

thanks
adrian
Posts: 2441

Re: ant build script pretty print

Tue May 29, 2018 3:00 pm

Hi,

Could you please provide a sample ANT file where this happens so we can identify the issue?
You can either send it directly to support@oxygenxml.com or use the Technical Support form from our web site.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
bloodnok
Posts: 8

Re: ant build script pretty print

Tue May 29, 2018 7:10 pm

i accidentally stumbled on the answer: your app pretty prints ant script variables if the script name starts with "build". makes sense.
adrian
Posts: 2441

Re: ant build script pretty print

Wed May 30, 2018 11:00 am

Hi,

Actually, if the XML file has one of the patterns build*.xml,integrator.xml it is treated as an ANT script file (specialized editor), otherwise it's a plain XML file. The patterns can be configured in Options > Preferences, File Types, Ant build patterns:. You can adjust the patterns to cover your ANT script file names, but make sure you don't make them too broad or you'll end up with too many XML files being treated as ANT scripts (which is a bad thing).

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 0 guests