Class register
- java.lang.Object
-
- ca.cgjennings.apps.CommandLineParser
-
- register
-
public final class register extends CommandLineParser
Integrates Strange Eons with a UNIX-like desktop based on freedesktop.org standards.This tool requires that
xdg-utils
be installed on the target system. Most modern distros will already have this installed.To use this from a command line, use a command like the following:
java -cp strange-eons.jar register [arguments...]
- Since:
- 3.0
- Version:
- 0.1
- Author:
- Chris Jennings
-
-
Field Summary
Fields Modifier and Type Field Description boolean
allusers
Command line option that specifies that registration should be for all users.java.lang.String
args
Arguments that will be passed to the application when launched from desktop.boolean
debug
Command line option that enables debug mode.java.lang.String
debugargs
Arguments that will be passed to the script debugger when launched from desktop.java.lang.String
debugjvm
Arguments that will be passed to the JRE when launching the script debugger.boolean
desktop
Command line argument that causes the application to be installed onto the desktop.java.io.File
installdir
Command line option that specifies the directory where Strange Eons is installed, if different from where this command is being run from.java.lang.String
java
Command line option that specifies the path to a Java installation to use.java.lang.String
jvmargs
Arguments that will be passed to the JRE when launching the application.static java.lang.String
MIME_TYPE_EON
MIME type for .eon files.static java.lang.String
MIME_TYPE_SEEXT
MIME type for .seext files.static java.lang.String
MIME_TYPE_SELIBRARY
MIME type for .selibrary files.static java.lang.String
MIME_TYPE_SEPLUGIN
MIME type for .seplugin files.static java.lang.String
MIME_TYPE_SEPROJECT
MIME type for .seproject files.static java.lang.String
MIME_TYPE_SETHEME
MIME type for .setheme files.boolean
stdinpassword
When registering for all users, read password from stdin instead of console.boolean
uninstall
Command line option that uninstalls a previous registration.java.lang.String
xdg
Command line option that specifies the path to the xdg-utils to use.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
displayUsageText(java.lang.Object target)
Called to display usage information when help is requested.static void
main(java.lang.String[] args)
Command line tool that registers the application and document types on freedesktop.org compatible systems.-
Methods inherited from class ca.cgjennings.apps.CommandLineParser
getOptionName, getPlainArguments, getPlainFiles, getUsageText, handleParsingError, isCaseSensitive, isHelpOption, parse, setOption, setUsageText
-
-
-
-
Field Detail
-
MIME_TYPE_EON
public static final java.lang.String MIME_TYPE_EON
MIME type for .eon files.- See Also:
- Constant Field Values
-
MIME_TYPE_SEPROJECT
public static final java.lang.String MIME_TYPE_SEPROJECT
MIME type for .seproject files.- See Also:
- Constant Field Values
-
MIME_TYPE_SEPLUGIN
public static final java.lang.String MIME_TYPE_SEPLUGIN
MIME type for .seplugin files.- See Also:
- Constant Field Values
-
MIME_TYPE_SEEXT
public static final java.lang.String MIME_TYPE_SEEXT
MIME type for .seext files.- See Also:
- Constant Field Values
-
MIME_TYPE_SETHEME
public static final java.lang.String MIME_TYPE_SETHEME
MIME type for .setheme files.- See Also:
- Constant Field Values
-
MIME_TYPE_SELIBRARY
public static final java.lang.String MIME_TYPE_SELIBRARY
MIME type for .selibrary files.- See Also:
- Constant Field Values
-
allusers
public boolean allusers
Command line option that specifies that registration should be for all users.
-
uninstall
public boolean uninstall
Command line option that uninstalls a previous registration.
-
stdinpassword
public boolean stdinpassword
When registering for all users, read password from stdin instead of console.
-
java
public java.lang.String java
Command line option that specifies the path to a Java installation to use.
-
xdg
public java.lang.String xdg
Command line option that specifies the path to the xdg-utils to use.
-
debug
public boolean debug
Command line option that enables debug mode.
-
jvmargs
public java.lang.String jvmargs
Arguments that will be passed to the JRE when launching the application.
-
args
public java.lang.String args
Arguments that will be passed to the application when launched from desktop.
-
debugjvm
public java.lang.String debugjvm
Arguments that will be passed to the JRE when launching the script debugger.
-
debugargs
public java.lang.String debugargs
Arguments that will be passed to the script debugger when launched from desktop.
-
installdir
public java.io.File installdir
Command line option that specifies the directory where Strange Eons is installed, if different from where this command is being run from.
-
desktop
public boolean desktop
Command line argument that causes the application to be installed onto the desktop.
-
-
Method Detail
-
displayUsageText
protected void displayUsageText(java.lang.Object target)
Description copied from class:CommandLineParser
Called to display usage information when help is requested. The base class prints a message to the output stream and exits. If a non-null
usage text has been set withCommandLineParser.setUsageText(java.lang.String)
, then this will be used as the text to display. If no other usage text is defined, the base class will display a default message that is generated from the fields in the target.- Overrides:
displayUsageText
in classCommandLineParser
- Parameters:
target
- the object being used as a parsing template
-
main
public static void main(java.lang.String[] args)
Command line tool that registers the application and document types on freedesktop.org compatible systems.- Parameters:
args
- command line arguments
-
-