View Javadoc
1   package org.codehaus.classworlds;
2   
3   /*
4    * Copyright 2001-2010 Codehaus Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  /**
20   * A compatibility wrapper for org.codehaus.plexus.classworlds.launcher.Launcher
21   * provided for legacy code
22   *
23   * @author Andrew Williams
24   */
25  @Deprecated
26  public class Launcher
27      extends org.codehaus.plexus.classworlds.launcher.Launcher
28  {
29      public Launcher()
30      {
31      }
32  
33  
34      // ------------------------------------------------------------
35      //     Class methods
36      // ------------------------------------------------------------
37  
38      /**
39       * Launch the launcher from the command line.
40       * Will exit using System.exit with an exit code of 0 for success, 100 if there was an unknown exception,
41       * or some other code for an application error.
42       *
43       * @param args The application command-line arguments.
44       */
45      public static void main( String[] args )
46      {
47          org.codehaus.plexus.classworlds.launcher.Launcher.main( args );
48      }
49  
50      /**
51       * Launch the launcher.
52       *
53       * @param args The application command-line arguments.
54       * @return an integer exit code
55       * @throws Exception If an error occurs.
56       */
57      public static int mainWithExitCode( String[] args )
58          throws Exception
59      {
60          return org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode( args );
61      }
62  }