--- AntScript.java.original 2006-05-08 11:18:36.000000000 +0200 +++ AntScript.java 2007-02-09 10:46:24.000000000 +0100 @@ -623,6 +623,30 @@ } /** + * Print an start tag in the Ant script for the given element name + * and increment the tab count + * + * @param tag the name of the element + * @param indentTabCount if true, change the tab count after printing + */ + public void printStartTag(String tag, boolean indentTab) { + printStartTag(tag); + if(indentTab) indent++; + } + + /** + * Print an start tag in the Ant script for the given element name + * and decrement the tab count before printing + * + * @param tag the name of the element + * @param indentTabCount if true, change the tab count before printing + */ + public void printEndTag(String tag, boolean indentTab) { + if(indentTab) indent--; + printEndTag(tag); + } + + /** * Print the given number of tabs to the Ant script. */ public void printTab() { @@ -784,4 +808,5 @@ public void printTabs() { printTab(); } + }