Package org.eclipse.tycho.packaging
Class FeatureXmlTransformer
- java.lang.Object
-
- org.eclipse.tycho.packaging.FeatureXmlTransformer
-
@Component(role=FeatureXmlTransformer.class) public class FeatureXmlTransformer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private FileLockServicefileLockServiceprivate static intKBYTEprivate org.codehaus.plexus.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description FeatureXmlTransformer()FeatureXmlTransformer(org.codehaus.plexus.logging.Logger log, FileLockService fileLockService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureexpandReferences(Feature feature, TargetPlatform targetPlatform)Replaces references in the feature model with versions from the target platform.protected longgetInstallSize(java.io.File location)private static java.lang.Stringquote(java.lang.String nullableString)private ArtifactKeyresolveFeatureReference(TargetPlatform targetPlatform, FeatureRef featureRef)private ArtifactKeyresolvePluginReference(TargetPlatform targetPlatform, PluginRef pluginRef)private voidsetDownloadAndInstallSize(PluginRef pluginRefToEdit, java.io.File artifact)
-
-
-
Field Detail
-
KBYTE
private static final int KBYTE
- See Also:
- Constant Field Values
-
log
@Requirement private org.codehaus.plexus.logging.Logger log
-
fileLockService
@Requirement private FileLockService fileLockService
-
-
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)
-
-