Class PomUpdater


  • public class PomUpdater
    extends Object
    The Class PomUpdater.
    • Constructor Detail

      • PomUpdater

        public PomUpdater()
    • Method Detail

      • updateSiteBeforeTag

        public static String updateSiteBeforeTag​(Site site,
                                                 String strSiteLocalPomPath)
                                          throws JAXBException
        Update site before tag.
        Parameters:
        site - the site
        strSiteLocalPomPath - 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 site
        strSiteLocalPomPath - 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 JAXBException
        Save.
        Parameters:
        model - the model
        outputStream - 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 class
        inputStream - the input stream
        Returns:
        the t
        Throws:
        JAXBException - the JAXB exception