Class PublishCategoriesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.core.maven.AbstractP2Mojo
-
- org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
-
- org.eclipse.tycho.plugins.p2.publisher.PublishCategoriesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="publish-categories", defaultPhase=PACKAGE) public final class PublishCategoriesMojo extends AbstractPublishMojoPublishes the category definitions from the category.xml in the root of the project.
-
-
Field Summary
Fields Modifier and Type Field Description private EclipseRepositoryProjecteclipseRepositoryProject
-
Constructor Summary
Constructors Constructor Description PublishCategoriesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcopySiteI18nFiles(BuildOutputDirectory buildFolder)private java.util.List<Category>getCategories()private java.io.FileprepareBuildCategory(Category category, BuildOutputDirectory buildFolder)Writes the Tycho-internal representation of categories back to a category.xml.protected java.util.Collection<DependencySeed>publishContent(PublisherServiceFactory publisherServiceFactory)Publishes source files with the help of the given publisher service.-
Methods inherited from class org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
execute
-
Methods inherited from class org.eclipse.tycho.core.maven.AbstractP2Mojo
getBuildContext, getBuildDirectory, getEnvironments, getProject, getProjectIdentities, getQualifier, getReactorProject, getSession
-
-
-
-
Field Detail
-
eclipseRepositoryProject
@Component(role=TychoProject.class, hint="eclipse-repository") private EclipseRepositoryProject eclipseRepositoryProject
-
-
Method Detail
-
publishContent
protected java.util.Collection<DependencySeed> publishContent(PublisherServiceFactory publisherServiceFactory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Description copied from class:AbstractPublishMojoPublishes source files with the help of the given publisher service.- Specified by:
publishContentin classAbstractPublishMojo- Returns:
- the list of root installable units that has been published
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
prepareBuildCategory
private java.io.File prepareBuildCategory(Category category, BuildOutputDirectory buildFolder) throws org.apache.maven.plugin.MojoExecutionException
Writes the Tycho-internal representation of categories back to a category.xml.- Parameters:
category- a category, with "qualifier" literals already replaced by the build qualifier.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
copySiteI18nFiles
private void copySiteI18nFiles(BuildOutputDirectory buildFolder) throws java.io.IOException
- Throws:
java.io.IOException
-
getCategories
private java.util.List<Category> getCategories()
-
-