Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E0B910724 for ; Thu, 7 Nov 2013 20:23:06 +0000 (UTC) Received: (qmail 54611 invoked by uid 500); 7 Nov 2013 20:23:06 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 54595 invoked by uid 500); 7 Nov 2013 20:23:06 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 54587 invoked by uid 99); 7 Nov 2013 20:23:06 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 20:23:06 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CE94B31D6A1; Thu, 7 Nov 2013 20:23:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kocka@apache.org To: commits@cloudstack.apache.org Date: Thu, 07 Nov 2013 20:23:06 -0000 Message-Id: <8c611d8e4a8b4463a97dbe371e8c4fcc@git.apache.org> In-Reply-To: <18d4444fa7f6493f9f3a34de28b99d3b@git.apache.org> References: <18d4444fa7f6493f9f3a34de28b99d3b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: updated refs/heads/master to 465dee0 fixed Rules it was no longer working, it must be fixed for those who want to read it. Signed-off-by: Laszlo Hornyak Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/336eb48f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/336eb48f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/336eb48f Branch: refs/heads/master Commit: 336eb48f9b6769355da46888922fe51e8195f208 Parents: 6a396a9 Author: Laszlo Hornyak Authored: Fri Oct 11 20:29:45 2013 +0200 Committer: Laszlo Hornyak Committed: Thu Nov 7 21:18:52 2013 +0100 ---------------------------------------------------------------------- .../api/src/org/apache/cloudstack/engine/Rules.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/336eb48f/engine/api/src/org/apache/cloudstack/engine/Rules.java ---------------------------------------------------------------------- diff --git a/engine/api/src/org/apache/cloudstack/engine/Rules.java b/engine/api/src/org/apache/cloudstack/engine/Rules.java index b700fa5..04b17a2 100755 --- a/engine/api/src/org/apache/cloudstack/engine/Rules.java +++ b/engine/api/src/org/apache/cloudstack/engine/Rules.java @@ -21,7 +21,6 @@ package org.apache.cloudstack.engine; import java.util.ArrayList; import java.util.List; -import com.cloud.utils.StringUtils; /** * Rules specifies all rules about developing and using CloudStack Orchestration @@ -55,18 +54,7 @@ public class Rules { private static void printRule(String rule) { System.out.print("API Rule: "); - String skip = ""; - int brk = 0; - while (true) { - int stop = StringUtils.formatForOutput(rule, brk, 75 - skip.length(), ' '); - if (stop < 0) { - break; - } - System.out.print(skip); - skip = " "; - System.out.println(rule.substring(brk, stop).trim()); - brk = stop; - } + System.out.println(rule); } public static void main(String[] args) {