Package com.avoka.fc.core.util
Class SystemUtil
java.lang.Object
com.avoka.fc.core.util.SystemUtil
Provides a set of utilities around the environment SmartForm Manager is installed on.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Return the base TM manager directory.static String
Return the path where WAR files are locatedstatic final Document
Return the JBoss application server configuration standalone.xml document.static String
Return the JBoss application server home directory.static String
Return the licensing directory.static String
Return the Phantom JS bin directory for the PhantomJSRenderReceiptService.static String
Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.static String
Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.static String
Return the path where reports are being published tostatic String
Return the system health directory.static boolean
Determine whether SmartForm Manager is running on a Windows server, using Java system properties.
-
Field Details
-
DEPLOYMENTS_DIR
The deployments directory- See Also:
-
JBOSS_HOME_PROPERTY
The Java system property pointing to the JBoss server home- See Also:
-
LICENSING_DIR
The licensing directory- See Also:
-
SYSTEM_HEALTH_DIR
The system health directory- See Also:
-
REPORTS_DIR
The report directory- See Also:
-
-
Constructor Details
-
SystemUtil
public SystemUtil()
-
-
Method Details
-
isWindowsServer
public static boolean isWindowsServer()Determine whether SmartForm Manager is running on a Windows server, using Java system properties.- Returns:
- whether SmartForm Manager is running on Windows
-
getReportsDirPath
Return the path where reports are being published to- Returns:
- the reports directory path
-
getDeploymentsDirPath
Return the path where WAR files are located- Returns:
- the path where WAR files are located
-
getJBossHomeDir
Return the JBoss application server home directory.- Returns:
- the JBoss application server home directory.
-
getJBossConfigDoc
Return the JBoss application server configuration standalone.xml document.- Returns:
- the JBoss application server configuration standalone.xml document, or null if JBoss not running
- Throws:
IOException
- if an IO error occurs- Since:
- 5.0.1
-
getBaseDir
Return the base TM manager directory.- Returns:
- the base TM manager directory.
- Since:
- 4.0.0
-
getPhantomJsDir
Return the Phantom JS bin directory for the PhantomJSRenderReceiptService.- Returns:
- the Phantom JS bin directory for the PhantomJSRenderReceiptService
- Since:
- 4.0.0
-
getPhantomJsV2Dir
Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.- Returns:
- the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2
- Since:
- 17.11.0
-
getPuppeteerDir
Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.- Returns:
- the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2
- Since:
- 19.5.0
-
getLicensingDir
Return the licensing directory. Files are stored to this directory temporarily for licensing purposes.- Returns:
- the licensing directory
- Since:
- 4.3.4
-
getSystemHealthDir
Return the system health directory. Files are stored to this directory temporarily for licensing purposes.- Returns:
- the system health directory
- Since:
- 4.3.4
-