Class PomUpdater
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.pom.PomUpdater
-
public class PomUpdater extends Object
The Class PomUpdater.
-
-
Constructor Summary
Constructors Constructor Description PomUpdater()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsave(fr.paris.lutece.plugins.releaser.business.jaxb.maven.Model model, OutputStream outputStream)Save.static <T> Tunmarshal(Class<T> docClass, InputStream inputStream)Unmarshal.static StringupdateSiteAfterTag(Site site, String strSiteLocalPomPath)Update site after tag.static StringupdateSiteBeforeTag(Site site, String strSiteLocalPomPath)Update site before tag.
-
-
-
Method Detail
-
updateSiteBeforeTag
public static String updateSiteBeforeTag(Site site, String strSiteLocalPomPath) throws JAXBException
Update site before tag.- Parameters:
site- the sitestrSiteLocalPomPath- the str site local pom path- Returns:
- the string
- Throws:
JAXBException- the JAXB exception
-
updateSiteAfterTag
public static String updateSiteAfterTag(Site site, String strSiteLocalPomPath) throws JAXBException
Update site after tag.- Parameters:
site- the sitestrSiteLocalPomPath- the str site local pom path- Returns:
- the string
- Throws:
JAXBException- the JAXB exception
-
save
public static void save(fr.paris.lutece.plugins.releaser.business.jaxb.maven.Model model, OutputStream outputStream) throws JAXBExceptionSave.- Parameters:
model- the modeloutputStream- the output stream- Throws:
JAXBException- the JAXB exception
-
unmarshal
public static <T> T unmarshal(Class<T> docClass, InputStream inputStream) throws JAXBException
Unmarshal.- Type Parameters:
T- the generic type- Parameters:
docClass- the doc classinputStream- the input stream- Returns:
- the t
- Throws:
JAXBException- the JAXB exception
-
-