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