Class ProvisionedInstallationBuilder


  • public class ProvisionedInstallationBuilder
    extends java.lang.Object
    • Field Detail

      • log

        private org.codehaus.plexus.logging.Logger log
      • metadataRepos

        private java.util.List<java.net.URI> metadataRepos
      • artifactRepos

        private java.util.List<java.net.URI> artifactRepos
      • ius

        private java.util.List<java.lang.String> ius
      • workingDir

        private java.io.File workingDir
      • effectiveDestination

        private java.io.File effectiveDestination
      • profileName

        private java.lang.String profileName
      • installFeatures

        private boolean installFeatures
      • bundleJars

        private java.util.List<java.io.File> bundleJars
    • Method Detail

      • setWorkingDir

        public void setWorkingDir​(java.io.File workingDir)
      • addMetadataRepositories

        public void addMetadataRepositories​(java.util.List<java.net.URI> uris)
      • addArtifactRepositories

        public void addArtifactRepositories​(java.util.List<java.net.URI> uris)
      • addBundleJar

        public void addBundleJar​(java.io.File bundleJar)
        Adds a plain bundle jar (not available in a p2 repository) to the IUs available during install. The bundles added will be published into a temporary p2 repository prior to install.
      • addIUsToBeInstalled

        public void addIUsToBeInstalled​(java.util.List<java.lang.String> ius)
      • setDestination

        public void setDestination​(java.io.File destination)
      • getEffectiveDestination

        public java.io.File getEffectiveDestination()
      • setProfileName

        public void setProfileName​(java.lang.String name)
      • setInstallFeatures

        public void setInstallFeatures​(boolean installFeatures)
      • install

        public EquinoxInstallation install()
                                    throws org.apache.maven.plugin.MojoFailureException,
                                           org.apache.maven.plugin.MojoExecutionException,
                                           java.io.IOException
        Throws:
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException
        java.io.IOException
      • publishPlainBundleJars

        private void publishPlainBundleJars()
                                     throws org.apache.maven.plugin.MojoFailureException,
                                            org.apache.maven.plugin.MojoExecutionException,
                                            java.io.IOException
        Throws:
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException
        java.io.IOException
      • executeDirector

        private void executeDirector()
                              throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • validate

        private void validate()
      • assertNotEmpty

        private void assertNotEmpty​(java.util.Collection<?> collection,
                                    java.lang.String name)
      • assertNotNull

        private void assertNotNull​(java.lang.Object object,
                                   java.lang.String name)