KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > modules > boot > GuiInstallerLicenseHandler


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 MuleSource MPL
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 JavaDoc;
14
15 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 JavaDoc args[]) throws Exception JavaDoc
26     {
27         File JavaDoc muleHome = new File JavaDoc(args[0].toString());
28         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
handler.saveLicenseAck("MuleSource Public License", "1.1.3");
34     }
35 }
36
Popular Tags