Page 1 of 1

ant build script pretty print

Posted: Fri May 25, 2018 6:48 pm
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

Re: ant build script pretty print

Posted: Tue May 29, 2018 3:00 pm
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

Re: ant build script pretty print

Posted: Tue May 29, 2018 7:10 pm
by bloodnok
i accidentally stumbled on the answer: your app pretty prints ant script variables if the script name starts with "build". makes sense.

Re: ant build script pretty print

Posted: Wed May 30, 2018 11:00 am
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