peterreilly    2004/09/24 01:17:34

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  checkstyle
  
  Revision  Changes    Path
  1.110     +20 -15    ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- Main.java 24 Sep 2004 08:13:25 -0000      1.109
  +++ Main.java 24 Sep 2004 08:17:34 -0000      1.110
  @@ -117,7 +117,7 @@
       /**
        * optional thread priority
        */
  -    private Integer threadPriority=null;
  +    private Integer threadPriority = null;
   
       /**
        * Prints the message of the Throwable if it (the message) is not
  @@ -410,18 +410,18 @@
                   keepGoingMode = true;
               } else if (arg.equals("-nice")) {
                   try {
  -                    threadPriority=Integer.decode(args[i + 1]);
  +                    threadPriority = Integer.decode(args[i + 1]);
                   } catch (ArrayIndexOutOfBoundsException aioobe) {
                       throw new BuildException(
  -                            "You must supply a niceness value (1-10)"+
  -                            " after the -nice option");
  +                            "You must supply a niceness value (1-10)"
  +                            + " after the -nice option");
                   } catch (NumberFormatException e) {
  -                    throw new BuildException("Unrecognized niceness value: " 
+
  -                            args[i + 1]);
  +                    throw new BuildException("Unrecognized niceness value: "
  +                                             + args[i + 1]);
                   }
                   i++;
  -                if(threadPriority.intValue()<Thread.MIN_PRIORITY ||
  -                        threadPriority.intValue()>Thread.MAX_PRIORITY) {
  +                if (threadPriority.intValue() < Thread.MIN_PRIORITY
  +                    || threadPriority.intValue() > Thread.MAX_PRIORITY) {
                       throw new BuildException(
                               "Niceness value is out of the range 1-10");
                   }
  @@ -631,7 +631,7 @@
                   if (threadPriority != null) {
                       try {
                           project.log("Setting Ant's thread priority to "
  -                                + threadPriority,Project.MSG_VERBOSE);
  +                                + threadPriority, Project.MSG_VERBOSE);
                           
Thread.currentThread().setPriority(threadPriority.intValue());
                       } catch (SecurityException swallowed) {
                           //we cannot set the priority here.
  @@ -814,12 +814,15 @@
           msg.append("  -quiet, -q             be extra quiet" + lSep);
           msg.append("  -verbose, -v           be extra verbose" + lSep);
           msg.append("  -debug, -d             print debugging information" + 
lSep);
  -        msg.append("  -emacs, -e             produce logging information 
without adornments" + lSep);
  -        msg.append("  -lib <path>            specifies a path to search for 
jars and classes" + lSep);
  +        msg.append("  -emacs, -e             produce logging information 
without adornments"
  +                   + lSep);
  +        msg.append("  -lib <path>            specifies a path to search for 
jars and classes"
  +                   + lSep);
           msg.append("  -logfile <file>        use given file for log" + lSep);
           msg.append("    -l     <file>                ''" + lSep);
           msg.append("  -logger <classname>    the class which is to perform 
logging" + lSep);
  -        msg.append("  -listener <classname>  add an instance of class as a 
project listener" + lSep);
  +        msg.append("  -listener <classname>  add an instance of class as a 
project listener"
  +                   + lSep);
           msg.append("  -noinput               do not allow interactive input" 
+ lSep);
           msg.append("  -buildfile <file>      use given buildfile" + lSep);
           msg.append("    -file    <file>              ''" + lSep);
  @@ -832,8 +835,9 @@
           msg.append("  -inputhandler <class>  the class which will handle 
input requests" + lSep);
           msg.append("  -find <file>           (s)earch for buildfile towards 
the root of" + lSep);
           msg.append("    -s  <file>           the filesystem and use it" + 
lSep);
  -        msg.append("  -nice  number          A niceness value for the main 
thread:" + lSep +
  -                   "                         1 (lowest) to 10 (highest); 5 
is the default" + lSep);
  +        msg.append("  -nice  number          A niceness value for the main 
thread:" + lSep
  +                   + "                         1 (lowest) to 10 (highest); 5 
is the default"
  +                   + lSep);
           msg.append("  -nouserlib             Run ant within using the jar 
files from ${user.home}/"
                      + ".ant/lib");
           System.out.println(msg.toString());
  @@ -1018,7 +1022,8 @@
               msg.append(" ");
               msg.append(names.elementAt(i));
               if (descriptions != null) {
  -                msg.append(spaces.substring(0, maxlen - ((String) 
names.elementAt(i)).length() + 2));
  +                msg.append(
  +                    spaces.substring(0, maxlen - ((String) 
names.elementAt(i)).length() + 2));
                   msg.append(descriptions.elementAt(i));
               }
               msg.append(lSep);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to