public class InitStrategy extends Object
Because the act of initializing plugins is a part of the Jenkins initialization,
this extension point cannot be implemented in a plugin. You need to place your jar
inside WEB-INF/lib
instead.
To register, put MetaInfServices
on your implementation.
Constructor and Description |
---|
InitStrategy() |
Modifier and Type | Method and Description |
---|---|
static InitStrategy |
get(ClassLoader cl)
Obtains the instance to be used.
|
protected void |
getBundledPluginsFromProperty(List<File> r)
Lists up additional bundled plugins from the system property
hudson.bundled.plugins . |
List<File> |
listPluginArchives(PluginManager pm)
Returns the list of *.jpi, *.hpi and *.hpl to expand and load.
|
boolean |
skipInitTask(org.jvnet.hudson.reactor.Task task)
Selectively skip some of the initialization tasks.
|
public List<File> listPluginArchives(PluginManager pm) throws IOException
Normally we look at $JENKINS_HOME/plugins/*.jpi
and *.hpi and *.hpl.
IOException
protected void getBundledPluginsFromProperty(List<File> r)
hudson.bundled.plugins
.
Since 1.480 glob syntax is supported.
For use in mvn jetty:run
.
TODO: maven-hpi-plugin should inject its own InitStrategy instead of having this in the core.public boolean skipInitTask(org.jvnet.hudson.reactor.Task task)
public static InitStrategy get(ClassLoader cl) throws IOException
IOException
Copyright © 2004–2021. All rights reserved.