public class BundlesPublisher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.io.File> |
bundles |
private P2ApplicationLauncher |
launcher |
private org.codehaus.plexus.logging.Logger |
log |
private int |
timeoutInSeconds |
private java.io.File |
workingDir |
Constructor and Description |
---|
BundlesPublisher(P2ApplicationLauncher launcher,
org.codehaus.plexus.logging.Logger log) |
Modifier and Type | Method and Description |
---|---|
void |
addBundle(java.io.File bundle) |
java.net.URI |
publishBundles(java.io.File targetDirectory)
Creates a p2 repository in targetDirectory containing the bundles added.
|
void |
setTimeout(int timeoutInSeconds) |
void |
setWorkingDir(java.io.File workingDir) |
private P2ApplicationLauncher launcher
private java.util.List<java.io.File> bundles
private java.io.File workingDir
private int timeoutInSeconds
private org.codehaus.plexus.logging.Logger log
public BundlesPublisher(P2ApplicationLauncher launcher, org.codehaus.plexus.logging.Logger log)
public void addBundle(java.io.File bundle)
public void setTimeout(int timeoutInSeconds)
public void setWorkingDir(java.io.File workingDir)
public java.net.URI publishBundles(java.io.File targetDirectory) throws java.io.IOException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
targetDirectory
- (must be emtpy)java.io.IOException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException