Class PomUpdater
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.pom.PomUpdater
-
public class PomUpdater extends java.lang.ObjectThe 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, java.io.OutputStream outputStream)Save.static <T> Tunmarshal(java.lang.Class<T> docClass, java.io.InputStream inputStream)Unmarshal.static java.lang.StringupdateSiteAfterTag(Site site, java.lang.String strSiteLocalPomPath)Update site after tag.static java.lang.StringupdateSiteBeforeTag(Site site, java.lang.String strSiteLocalPomPath)Update site before tag.
-
-
-
Method Detail
-
updateSiteBeforeTag
public static java.lang.String updateSiteBeforeTag(Site site, java.lang.String strSiteLocalPomPath) throws javax.xml.bind.JAXBException
Update site before tag.- Parameters:
site- the sitestrSiteLocalPomPath- the str site local pom path- Returns:
- the string
- Throws:
javax.xml.bind.JAXBException- the JAXB exception
-
updateSiteAfterTag
public static java.lang.String updateSiteAfterTag(Site site, java.lang.String strSiteLocalPomPath) throws javax.xml.bind.JAXBException
Update site after tag.- Parameters:
site- the sitestrSiteLocalPomPath- the str site local pom path- Returns:
- the string
- Throws:
javax.xml.bind.JAXBException- the JAXB exception
-
save
public static void save(fr.paris.lutece.plugins.releaser.business.jaxb.maven.Model model, java.io.OutputStream outputStream) throws javax.xml.bind.JAXBExceptionSave.- Parameters:
model- the modeloutputStream- the output stream- Throws:
javax.xml.bind.JAXBException- the JAXB exception
-
unmarshal
public static <T> T unmarshal(java.lang.Class<T> docClass, java.io.InputStream inputStream) throws javax.xml.bind.JAXBExceptionUnmarshal.- Type Parameters:
T- the generic type- Parameters:
docClass- the doc classinputStream- the input stream- Returns:
- the t
- Throws:
javax.xml.bind.JAXBException- the JAXB exception
-
-