Class FeatureXmlTransformer

    • Field Detail

      • log

        @Requirement
        private org.codehaus.plexus.logging.Logger log
    • Constructor Detail

      • FeatureXmlTransformer

        public FeatureXmlTransformer()
      • FeatureXmlTransformer

        public FeatureXmlTransformer​(org.codehaus.plexus.logging.Logger log,
                                     FileLockService fileLockService)
    • Method Detail

      • expandReferences

        public Feature expandReferences​(Feature feature,
                                        TargetPlatform targetPlatform)
                                 throws org.apache.maven.plugin.MojoFailureException
        Replaces references in the feature model with versions from the target platform.
        Parameters:
        feature - The feature model to have plug-in and feature references completed.
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • resolvePluginReference

        private ArtifactKey resolvePluginReference​(TargetPlatform targetPlatform,
                                                   PluginRef pluginRef)
                                            throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • resolveFeatureReference

        private ArtifactKey resolveFeatureReference​(TargetPlatform targetPlatform,
                                                    FeatureRef featureRef)
                                             throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • quote

        private static java.lang.String quote​(java.lang.String nullableString)
      • setDownloadAndInstallSize

        private void setDownloadAndInstallSize​(PluginRef pluginRefToEdit,
                                               java.io.File artifact)
      • getInstallSize

        protected long getInstallSize​(java.io.File location)