ant build script pretty print

Oxygen general issues.
bloodnok
Posts: 54
Joined: Mon Jun 27, 2011 10:51 pm

ant build script pretty print

Post by bloodnok »

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: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: ant build script pretty print

Post by adrian »

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: 54
Joined: Mon Jun 27, 2011 10:51 pm

Re: ant build script pretty print

Post by bloodnok »

i accidentally stumbled on the answer: your app pretty prints ant script variables if the script name starts with "build". makes sense.
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: ant build script pretty print

Post by adrian »

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