Class PomUpdater


  • public class PomUpdater
    extends java.lang.Object
    The Class PomUpdater.
    • Constructor Summary

      Constructors 
      Constructor Description
      PomUpdater()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void save​(fr.paris.lutece.plugins.releaser.business.jaxb.maven.Model model, java.io.OutputStream outputStream)
      Save.
      static <T> T unmarshal​(java.lang.Class<T> docClass, java.io.InputStream inputStream)
      Unmarshal.
      static java.lang.String updateSiteAfterTag​(Site site, java.lang.String strSiteLocalPomPath)
      Update site after tag.
      static java.lang.String updateSiteBeforeTag​(Site site, java.lang.String strSiteLocalPomPath)
      Update site before tag.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PomUpdater

        public PomUpdater()
    • 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 site
        strSiteLocalPomPath - 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 site
        strSiteLocalPomPath - 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.JAXBException
        Save.
        Parameters:
        model - the model
        outputStream - 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.JAXBException
        Unmarshal.
        Type Parameters:
        T - the generic type
        Parameters:
        docClass - the doc class
        inputStream - the input stream
        Returns:
        the t
        Throws:
        javax.xml.bind.JAXBException - the JAXB exception