Package org.eclipse.tycho.plugins.p2
Class AbstractP2MetadataMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CategoryP2MetadataMojo
,FeatureP2MetadataMojo
,UpdateSiteP2MetadataMojo
public abstract class AbstractP2MetadataMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
argLine
Arbitrary JVM options to set on the command line.protected java.lang.String
artifactRepositoryName
Artifact repository nameprivate boolean
compressRepository
private int
forkedProcessTimeoutInSeconds
Kill the forked test process after a certain number of seconds.protected boolean
generateP2Metadata
private P2ApplicationLauncher
launcher
protected java.lang.String
metadataRepositoryName
Metadata repository nameprotected org.apache.maven.project.MavenProject
project
protected java.io.File
target
Generated update site location (must match update-site mojo configuration)
-
Constructor Summary
Constructors Constructor Description AbstractP2MetadataMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addArguments(P2ApplicationLauncher launcher)
void
execute()
private void
generateMetadata()
protected abstract java.lang.String
getPublisherApplication()
protected java.io.File
getUpdateSiteLocation()
protected void
logUpdateSiteLocationNotFound()
-
-
-
Field Detail
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
-
metadataRepositoryName
@Parameter(defaultValue="${project.name}", required=true) protected java.lang.String metadataRepositoryName
Metadata repository name
-
target
@Parameter(defaultValue="${project.build.directory}/site") protected java.io.File target
Generated update site location (must match update-site mojo configuration)
-
artifactRepositoryName
@Parameter(defaultValue="${project.name} Artifacts", required=true) protected java.lang.String artifactRepositoryName
Artifact repository name
-
forkedProcessTimeoutInSeconds
@Parameter(property="p2.timeout") private int forkedProcessTimeoutInSeconds
Kill the forked test process after a certain number of seconds. If set to 0, wait forever for the process, never timing out.
-
argLine
@Parameter private java.lang.String argLine
Arbitrary JVM options to set on the command line.
-
generateP2Metadata
@Parameter(defaultValue="true") protected boolean generateP2Metadata
-
compressRepository
@Parameter(defaultValue="true") private boolean compressRepository
-
launcher
@Component private P2ApplicationLauncher launcher
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
logUpdateSiteLocationNotFound
protected void logUpdateSiteLocationNotFound()
-
generateMetadata
private void generateMetadata() throws java.lang.Exception
- Throws:
java.lang.Exception
-
addArguments
protected void addArguments(P2ApplicationLauncher launcher) throws java.io.IOException, java.net.MalformedURLException
- Throws:
java.io.IOException
java.net.MalformedURLException
-
getPublisherApplication
protected abstract java.lang.String getPublisherApplication()
-
getUpdateSiteLocation
protected java.io.File getUpdateSiteLocation()
-
-