Commonize into PathUtils; On Linux/BSD try to use xdg-open/x-www-browser if Java...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / util / UnassistedLaunchEntry.java
blobbdcc4050b2b5817c140eadf779d2a4a56654e342
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // Multi-Phasic Applications: SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.plugin.util;
12 /**
13 * This is used to allow for unassisted launches when building ROMs and
14 * otherwise.
16 * @since 2021/08/22
18 public final class UnassistedLaunchEntry
20 /** MIDlet starting class. */
21 public static final String MIDLET_MAIN_CLASS =
22 "javax.microedition.midlet.__MainHandler__";
24 /** The main entry class. */
25 public final String mainClass;
27 /** The arguments to the call. */
28 private final String[] _args;
30 /**
31 * Initializes the unassisted launch entry.
33 * @param __mainClass The main class.
34 * @param __args The arguments to the call.
35 * @since 2021/08/22
37 public UnassistedLaunchEntry(String __mainClass, String... __args)
39 this.mainClass = __mainClass;
40 this._args = __args;
43 /**
44 * Returns the launch arguments.
46 * @return The launch arguments.
47 * @since 2021/08/22
49 public final String[] args()
51 return this._args.clone();