Class PomUpdater

java.lang.Object
fr.paris.lutece.plugins.releaser.util.pom.PomUpdater

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

    • PomUpdater

      public PomUpdater()
  • Method Details

    • updateSiteBeforeTag

      public static String updateSiteBeforeTag(Site site, 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 String updateSiteAfterTag(Site site, 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, 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(Class<T> docClass, 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