This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jredmine. See http://git.nuiton.org/jredmine.git commit 31a023520e4e4ecf618bcf461c15176923c410bf Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Mar 4 12:42:04 2015 +0100 add warning message when publish was not possible --- .../main/java/org/nuiton/jredmine/plugin/PublishAttachmentsMojo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jredmine-maven-plugin/src/main/java/org/nuiton/jredmine/plugin/PublishAttachmentsMojo.java b/jredmine-maven-plugin/src/main/java/org/nuiton/jredmine/plugin/PublishAttachmentsMojo.java index 06ad049..b33a9f1 100644 --- a/jredmine-maven-plugin/src/main/java/org/nuiton/jredmine/plugin/PublishAttachmentsMojo.java +++ b/jredmine-maven-plugin/src/main/java/org/nuiton/jredmine/plugin/PublishAttachmentsMojo.java @@ -32,6 +32,7 @@ import org.nuiton.helper.plugin.CollectFilesMojo; import org.nuiton.jredmine.model.Attachment; import org.nuiton.jredmine.service.RedmineServiceException; import org.nuiton.plugin.PluginHelper; +import org.nuiton.util.StringUtil; import java.io.File; import java.io.IOException; @@ -280,7 +281,8 @@ public class PublishAttachmentsMojo extends AbstractRedmineMojoWithProjectAndVer } catch (RedmineServiceException e) { getLog().warn(""); - getLog().warn(String.format("Could not upload attachment %s, may be the file length (%s) exceed the one authorized by the redmine instance.", f, f.length())); + String lengthHumanReadable = StringUtil.convertMemory(f.length()); + getLog().warn(String.format("Could not upload attachment %s, may be the file length (%s) exceed the one authorized by the redmine instance.", f, lengthHumanReadable)); getLog().warn(""); throw e; -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.