Class BundlesPublisher
- java.lang.Object
-
- org.eclipse.tycho.surefire.provisioning.BundlesPublisher
-
public class BundlesPublisher extends java.lang.Object
Convenience wrapper around FeaturesAndBundlesPublisher to help with bundle jars not available from a p2 repository.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description BundlesPublisher(P2ApplicationLauncher launcher, org.codehaus.plexus.logging.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
launcher
private P2ApplicationLauncher launcher
-
bundles
private java.util.List<java.io.File> bundles
-
workingDir
private java.io.File workingDir
-
timeoutInSeconds
private int timeoutInSeconds
-
log
private org.codehaus.plexus.logging.Logger log
-
-
Constructor Detail
-
BundlesPublisher
public BundlesPublisher(P2ApplicationLauncher launcher, org.codehaus.plexus.logging.Logger log)
-
-
Method Detail
-
addBundle
public void addBundle(java.io.File bundle)
-
setTimeout
public void setTimeout(int timeoutInSeconds)
-
setWorkingDir
public void setWorkingDir(java.io.File workingDir)
-
publishBundles
public java.net.URI publishBundles(java.io.File targetDirectory) throws java.io.IOException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
Creates a p2 repository in targetDirectory containing the bundles added.- Parameters:
targetDirectory
- (must be emtpy)- Returns:
- URI of p2 repository created
- Throws:
java.io.IOException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
-
-