Class PluginUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.PluginUtils
-
public class PluginUtils extends java.lang.ObjectThe Class PluginUtils.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCORE_PLUGIN_NAME1The Constant CORE_PLUGIN_NAME1.static java.lang.StringCORE_PLUGIN_NAME2The Constant CORE_PLUGIN_NAME2.
-
Constructor Summary
Constructors Constructor Description PluginUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetAppInfoFile(java.lang.String strBasePath)Gets the app info file.static java.lang.StringgetCoreXMLFile(java.lang.String strComponentPath)Gets the core XML file.static java.lang.String[]getPluginXMLFile(java.lang.String strComponentPath)Gets the plugin XML file.static booleanisCore(java.lang.String strPluginName)Checks if is core.static booleanupdateAppInfoFile(java.lang.String strFile, java.lang.String strVersion, CommandResult commandResult)Update app info file.static java.lang.StringupdatePluginXMLVersion(java.lang.String strFile, java.lang.String strNewVersion, CommandResult commandResult)Update plugin XML version.
-
-
-
Field Detail
-
CORE_PLUGIN_NAME1
public static final java.lang.String CORE_PLUGIN_NAME1
The Constant CORE_PLUGIN_NAME1.- See Also:
- Constant Field Values
-
CORE_PLUGIN_NAME2
public static final java.lang.String CORE_PLUGIN_NAME2
The Constant CORE_PLUGIN_NAME2.- See Also:
- Constant Field Values
-
-
Method Detail
-
isCore
public static boolean isCore(java.lang.String strPluginName)
Checks if is core.- Parameters:
strPluginName- plugin name- Returns:
trueif core or lutece-core,falseotherwise.
-
getCoreXMLFile
public static java.lang.String getCoreXMLFile(java.lang.String strComponentPath)
Gets the core XML file.- Parameters:
strComponentPath- the str component path- Returns:
- the core XML file
-
getPluginXMLFile
public static java.lang.String[] getPluginXMLFile(java.lang.String strComponentPath)
Gets the plugin XML file.- Parameters:
strComponentPath- the str component path- Returns:
- the plugin XML file
-
getAppInfoFile
public static java.lang.String getAppInfoFile(java.lang.String strBasePath)
Gets the app info file.- Parameters:
strBasePath- the str base path- Returns:
- the app info file
-
updateAppInfoFile
public static boolean updateAppInfoFile(java.lang.String strFile, java.lang.String strVersion, CommandResult commandResult)Update app info file.- Parameters:
strFile- the str filestrVersion- the str versioncommandResult- the command result- Returns:
- true, if successful
-
updatePluginXMLVersion
public static java.lang.String updatePluginXMLVersion(java.lang.String strFile, java.lang.String strNewVersion, CommandResult commandResult)Update plugin XML version.- Parameters:
strFile- the str filestrNewVersion- the str new versioncommandResult- the command result- Returns:
- the string
-
-