public class Platform extends Object
Modifier and Type | Field and Description |
---|---|
static String |
UNIX_NAME
Unix as Platform name.
|
static String |
WINDOWS_NAME
Windows Platform name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Set<String> |
getAllPlatformNames()
Get the names of all available platforms.
|
static Set<Platform> |
getAllPlatforms()
Get all platforms.
|
String |
getAppArguments(Daemon descriptor)
Get the application arguments.
|
String |
getBasedir() |
String |
getBinFileExtension() |
String |
getClassPath(Daemon daemon)
Get the ClassPath based on the given Daemon.
|
String |
getCommentPrefix() |
String |
getEnvSetup(Daemon daemon,
String binFolder)
Get the environment setup file.
|
String |
getExtraJvmArguments(JvmSettings jvmSettings)
Get the extra JVMArguments.
|
static Platform |
getInstance(String platformName)
Get an instance of the named platform.
|
String |
getInterpolationToken()
The interpolation token either for windows or unix.
|
String |
getName()
The name of the platform.
|
String |
getNewLine() |
String |
getPathSeparator() |
static Set<Platform> |
getPlatformSet(List<String> platformList)
Redefine the list of platforms with the given one.
|
static Set<Platform> |
getPlatformSet(List<String> platformList,
Set<Platform> allSet)
Get back all platforms.
|
String |
getRepo() |
String |
getSeparator() |
int |
hashCode() |
boolean |
isShowConsoleWindow(Daemon daemon)
ShowConsole window.
|
void |
setBinFileExtension(String binFileExtension)
Set the bin file extension.
|
public static final String UNIX_NAME
public static final String WINDOWS_NAME
public static Platform getInstance(String platformName) throws DaemonGeneratorException
platformName
- The name of the wished platform.DaemonGeneratorException
- in case of an wrong platformname.public static Set<String> getAllPlatformNames()
public static Set<Platform> getAllPlatforms()
public static Set<Platform> getPlatformSet(List<String> platformList) throws DaemonGeneratorException
platformList
- The new list of platforms.DaemonGeneratorException
- in case of an error.public static Set<Platform> getPlatformSet(List<String> platformList, Set<Platform> allSet) throws DaemonGeneratorException
platformList
- The list of platforms.allSet
- The all set list.DaemonGeneratorException
- in case of an error.public String getInterpolationToken()
public String getBinFileExtension()
public String getBasedir()
public String getRepo()
public String getSeparator()
public String getPathSeparator()
public String getCommentPrefix()
public String getNewLine()
public String getClassPath(Daemon daemon) throws DaemonGeneratorException
daemon
- The Daemon instance.DaemonGeneratorException
- in case of an error.public String getExtraJvmArguments(JvmSettings jvmSettings) throws IOException
jvmSettings
- The JVM settings-X
options for the JVM settings.IOException
- in case of an error.public String getAppArguments(Daemon descriptor)
descriptor
- Instance of the daemon descriptor.public String getEnvSetup(Daemon daemon, String binFolder)
daemon
- The instance of the Daemon for which this is beeing produced.public String getName()
public boolean isShowConsoleWindow(Daemon daemon)
daemon
- public void setBinFileExtension(String binFileExtension)
binFileExtension
- The extension of the binary file.Copyright © 2006–2015 Codehaus. All rights reserved.