Class PluginUtils
java.lang.Object
fr.paris.lutece.plugins.releaser.util.PluginUtils
The Class PluginUtils.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 booleanChecks 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 Details
-
CORE_PLUGIN_NAME1
The Constant CORE_PLUGIN_NAME1.- See Also:
-
CORE_PLUGIN_NAME2
The Constant CORE_PLUGIN_NAME2.- See Also:
-
-
Constructor Details
-
PluginUtils
public PluginUtils()
-
-
Method Details
-
isCore
Checks if is core.- Parameters:
strPluginName- plugin name- Returns:
trueif core or lutece-core,falseotherwise.
-
getCoreXMLFile
Gets the core XML file.- Parameters:
strComponentPath- the str component path- Returns:
- the core XML file
-
getPluginXMLFile
Gets the plugin XML file.- Parameters:
strComponentPath- the str component path- Returns:
- the plugin XML file
-
getAppInfoFile
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
-