]> source.dussan.org Git - gitblit.git/commitdiff
Fix to build method.
authorJames Moger <james.moger@gitblit.com>
Wed, 13 Jul 2011 00:27:56 +0000 (20:27 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 13 Jul 2011 00:27:56 +0000 (20:27 -0400)
build.xml
src/com/gitblit/build/Build.java

index 954bc03f6b9a59c963535da8c72fd2e50fc1278b..ab7941369a228795b754b168e929c2061b886a3c 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -2,7 +2,8 @@
 <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
index 998e7ba61945ef702220554489edc1970deaf443..bd5e2f3276ac41fbeb2b03b857f3ebd6700a1265 100644 (file)
@@ -313,7 +313,7 @@ public class Build {
                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