public class PluginUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_PLUGIN_NAME1
The Constant CORE_PLUGIN_NAME1.
|
static String |
CORE_PLUGIN_NAME2
The Constant CORE_PLUGIN_NAME2.
|
| Constructor and Description |
|---|
PluginUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAppInfoFile(String strBasePath)
Gets the app info file.
|
static String |
getCoreXMLFile(String strComponentPath)
Gets the core XML file.
|
static String[] |
getPluginXMLFile(String strComponentPath)
Gets the plugin XML file.
|
static boolean |
isCore(String strPluginName)
Checks if is core.
|
static boolean |
updateAppInfoFile(String strFile,
String strVersion,
CommandResult commandResult)
Update app info file.
|
static String |
updatePluginXMLVersion(String strFile,
String strNewVersion,
CommandResult commandResult)
Update plugin XML version.
|
public static final String CORE_PLUGIN_NAME1
public static final String CORE_PLUGIN_NAME2
public static boolean isCore(String strPluginName)
strPluginName - plugin nametrue if core or lutece-core, false otherwise.public static String getCoreXMLFile(String strComponentPath)
strComponentPath - the str component pathpublic static String[] getPluginXMLFile(String strComponentPath)
strComponentPath - the str component pathpublic static String getAppInfoFile(String strBasePath)
strBasePath - the str base pathpublic static boolean updateAppInfoFile(String strFile, String strVersion, CommandResult commandResult)
strFile - the str filestrVersion - the str versioncommandResult - the command resultpublic static String updatePluginXMLVersion(String strFile, String strNewVersion, CommandResult commandResult)
strFile - the str filestrNewVersion - the str new versioncommandResult - the command resultCopyright © 2020 City of Paris. All rights reserved.