public class NBootPlatformHome extends Object
| Modifier and Type | Field and Description |
|---|---|
static NBootPlatformHome |
SYSTEM |
static NBootPlatformHome |
USER |
| Constructor and Description |
|---|
NBootPlatformHome(String platformOsFamily,
boolean system,
Function<String,String> env,
Function<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
buildLocations(String storeStrategy,
Map<String,String> baseLocations,
Map<NBootHomeLocation,String> homeLocations,
String workspaceLocation) |
static String |
currentOsFamily() |
String |
getCustomPlatformHomeFolder(String storeType,
Map<NBootHomeLocation,String> homeLocations)
resolves custom nuts home folder from
homeLocations. |
String |
getHome() |
String |
getStore(String storeType) |
String |
getWindowsProgramFiles() |
String |
getWindowsProgramFilesX86() |
String |
getWindowsSystemDrive() |
String |
getWindowsSystemRoot() |
String |
getWorkspaceLocation(String workspaceName) |
String |
getWorkspaceLocation(String location,
Map<NBootHomeLocation,String> homeLocations,
String workspaceName)
resolves nuts home folder.Home folder is the root for nuts folders.It
depends on folder type and store layout.
|
String |
getWorkspaceStore(String storeType,
String workspaceName)
resolves nuts home folder.Home folder is the root for nuts folders.It
depends on folder type and store layout.
|
static NBootPlatformHome |
of(String platformOsFamily) |
static NBootPlatformHome |
of(String platformOsFamily,
boolean system) |
static NBootPlatformHome |
of(String platformOsFamily,
Function<String,String> env,
Function<String,String> props) |
static NBootPlatformHome |
ofPortable(String platformOsFamily,
boolean system,
Function<String,String> env,
Function<String,String> props) |
static NBootPlatformHome |
ofPortable(String platformOsFamily,
boolean system,
String userName) |
static NBootPlatformHome |
ofPortable(String platformOsFamily,
String userName) |
static NBootPlatformHome |
ofPortableSystem(String platformOsFamily,
String userName) |
static NBootPlatformHome |
ofSystem(String platformOsFamily) |
static NBootPlatformHome |
ofSystem(String platformOsFamily,
Function<String,String> env,
Function<String,String> props) |
static String[] |
osFamilies() |
static String |
parseOsFamily(String value) |
static String[] |
storeTypes() |
public static final NBootPlatformHome USER
public static final NBootPlatformHome SYSTEM
public static NBootPlatformHome ofSystem(String platformOsFamily, Function<String,String> env, Function<String,String> props)
public static NBootPlatformHome of(String platformOsFamily, Function<String,String> env, Function<String,String> props)
public static NBootPlatformHome ofSystem(String platformOsFamily)
public static NBootPlatformHome of(String platformOsFamily)
public static NBootPlatformHome of(String platformOsFamily, boolean system)
public static NBootPlatformHome ofPortable(String platformOsFamily, String userName)
public static NBootPlatformHome ofPortableSystem(String platformOsFamily, String userName)
public static NBootPlatformHome ofPortable(String platformOsFamily, boolean system, String userName)
public static NBootPlatformHome ofPortable(String platformOsFamily, boolean system, Function<String,String> env, Function<String,String> props)
public String getCustomPlatformHomeFolder(String storeType, Map<NBootHomeLocation,String> homeLocations)
homeLocations.
Home folder is the root for nuts folders.
It depends on folder type and store layout.storeType - folder type to resolve home forhomeLocations - workspace home locationspublic String getWorkspaceLocation(String location, Map<NBootHomeLocation,String> homeLocations, String workspaceName)
location - folder type to resolve home forhomeLocations - workspace home locationsworkspaceName - workspace name or id (discriminator)public String getHome()
public String getWorkspaceStore(String storeType, String workspaceName)
storeType - folder type to resolve home forworkspaceName - workspace name or id (discriminator)public static String currentOsFamily()
public String getWindowsProgramFiles()
public String getWindowsProgramFilesX86()
public String getWindowsSystemRoot()
public String getWindowsSystemDrive()
public static String[] osFamilies()
public static String[] storeTypes()
public Map<String,String> buildLocations(String storeStrategy, Map<String,String> baseLocations, Map<NBootHomeLocation,String> homeLocations, String workspaceLocation)
storeStrategy - storeStrategy or nullbaseLocations - baseLocations or nullhomeLocations - homeLocations or nullworkspaceLocation - workspaceName or nullCopyright © 2025 vpc open source initiative. All rights reserved.