View Javadoc

1   /*
2    * $Id: GuiInstallerLibraryDownloader.java 9403 2007-10-26 18:45:53Z aguenther $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.modules.boot;
12  
13  import java.io.File;
14  
15  public class GuiInstallerLibraryDownloader
16  {
17      public static void main(String args[]) throws Exception
18      {
19          File muleHome = new File(args[0]);
20          MuleBootstrapUtils.ProxyInfo proxyInfo = null;
21          if (args.length > 2)
22          {
23              proxyInfo = new MuleBootstrapUtils.ProxyInfo(args[1], args[2]);
24          }
25          if (args.length > 4)
26          {
27              proxyInfo = new MuleBootstrapUtils.ProxyInfo(args[1], args[2], args[3], args[4]);
28          }
29          MuleBootstrapUtils.addLocalJarFilesToClasspath(muleHome, muleHome);
30          MuleBootstrapUtils.addExternalJarFilesToClasspath(muleHome, proxyInfo);
31      }
32  }