Add below target in your build script and execute it for removing whitespaces from jsp. change location of war file to yours before proceeding.
<target name="removespace" > <echo message="Compressing jsp files for new line and carriage return at location: <<<<Your War location>>>>" /> <replaceregexp match="[\r\n]" replace=" " flags="g" byline="false"> <fileset dir="<<<<Your War location>>>>" includes="**/*.html,**/*.htm,**/*.jsp,**/*.jspf,**/*.tag"/> </replaceregexp> <echo message="Compressing jsp files for more than 2 spaces at location: <<<<Your War location>>>>" /> <replaceregexp match="\s{2,}" replace=" " flags="g" byline="false"> <fileset dir="<<<<Your War location>>>>" includes="**/*.html,**/*.htm,**/*.jsp,**/*.jspf,**/*.tag"/> </replaceregexp> </target>
0 comments:
Post a Comment