derbyrun

16:35:17.680 INFO  jd.cli.Main - Decompiling derbyrun.jar
package org.apache.derby.iapi.tools;

import java.io.IOException;
import java.io.PrintStream;
import org.apache.derby.drda.NetworkServerControl;
import org.apache.derby.iapi.tools.i18n.LocalizedResource;
import org.apache.derby.tools.SignatureChecker;
import org.apache.derby.tools.dblook;
import org.apache.derby.tools.ij;
import org.apache.derby.tools.sysinfo;

public class run
{
  public static void main(String[] paramArrayOfString)
    throws IOException
  {
    if (paramArrayOfString.length < 1) {
      printUsage();
    } else if (paramArrayOfString[0].equals("ij")) {
      ij.main(trimArgs(paramArrayOfString));
    } else if (paramArrayOfString[0].equals("sysinfo")) {
      sysinfo.main(trimArgs(paramArrayOfString));
    } else if (paramArrayOfString[0].equals("dblook")) {
      dblook.main(trimArgs(paramArrayOfString));
    } else if (paramArrayOfString[0].equals("server")) {
      NetworkServerControl.main(trimArgs(paramArrayOfString));
    } else if (paramArrayOfString[0].equals("SignatureChecker")) {
      SignatureChecker.main(trimArgs(paramArrayOfString));
    } else {
      printUsage();
    }
  }
  
  private static String[] trimArgs(String[] paramArrayOfString)
  {
    String[] arrayOfString = new String[paramArrayOfString.length - 1];
    System.arraycopy(paramArrayOfString, 1, arrayOfString, 0, paramArrayOfString.length - 1);
    return arrayOfString;
  }
  
  public static void printUsage()
  {
    LocalizedResource localLocalizedResource = LocalizedResource.getInstance();
    System.err.println(localLocalizedResource.getTextMessage("RUN_Usage"));
  }
}

/* Location:
 * Qualified Name:     org.apache.derby.iapi.tools.run
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd