Coverage Report - org.mule.modules.boot.GuiInstallerLicenseHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
GuiInstallerLicenseHandler
0%
0/5
N/A
1
 
 1  
 /*
 2  
  * $Id $
 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  0
 public class GuiInstallerLicenseHandler
 16  
 {
 17  
     /**
 18  
      * The main method which is called by the GUI. It creates the LicenseHandler
 19  
      * object and then seeks to save the license by calling the method
 20  
      * saveLicenseAck.
 21  
      * 
 22  
      * @param args
 23  
      * @throws Exception
 24  
      */
 25  
     public static void main(String args[]) throws Exception
 26  
     {
 27  0
         File muleHome = new File(args[0].toString());
 28  0
         LicenseHandler handler = new LicenseHandler(muleHome);
 29  
         // No need to trap the exception: the saveLicenseAck method
 30  
         // Now checks to make sure there is no license.props already
 31  
         // saved. However, the GuiInstaller should really do this check
 32  
         // first.
 33  0
         handler.saveLicenseAck("MuleSource Public License", "1.1.3");
 34  0
     }
 35  
 }