<project name="gitblit" default="compile" basedir=".">\r
\r
<!-- Google Code upload task -->\r
- <taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" classpath="${basedir}/tools/ant-googlecode-0.0.3.jar" name="gcupload"/>\r
+ <taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" \r
+ classpath="${basedir}/tools/ant-googlecode-0.0.3.jar" name="gcupload"/>\r
\r
<!-- Project Properties -->\r
<property name="project.jar" value="gitblit.jar" />\r
String anim = "==========";\r
int width = Math.round(anim.length() * progress);\r
System.out.print("\r[");\r
- System.out.print(anim.substring(0, width));\r
+ System.out.print(anim.substring(0, Math.min(width, anim.length())));\r
for (int i = 0; i < anim.length() - width; i++) {\r
System.out.print(' ');\r
}\r