Skip to content
Permalink
Browse files
Merge pull request #15 from daspilker/JENKINS-24808
Added support for PluginFirstClassLoader
  • Loading branch information
daspilker committed Sep 24, 2014
2 parents 930b999 + e936f23 commit 01161be5db061aa2a8fad177b0343241d4e49b30
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
@@ -6,3 +6,5 @@
[JENKINS-19942](https://issues.jenkins-ci.org/browse/JENKINS-19942)
* register input files for the localizer task to avoid that the task is skipped when the inputs change
[JENKINS-24298](https://issues.jenkins-ci.org/browse/JENKINS-24298)
* added pluginFirstClassLoader attribute
[JENKINS-24808](https://issues.jenkins-ci.org/browse/JENKINS-24808)
@@ -22,6 +22,8 @@ Add the following to your build.gradle:
> url = 'http://wiki.jenkins-ci.org/display/JENKINS/SomePluginPage' // URL for plugin on Jenkins wiki or elsewhere.
> gitHubUrl = 'https://github.com/jenkinsci/some-plugin' // Plugin URL on GitHub. Optional.
>
> pluginFirstClassLoader = true // Use the plugin class loader before the core class loader. Defaults to false.
>
> // The developers section is optional, and corresponds to the POM developers section.
> developers {
> developer {
@@ -102,6 +102,8 @@ class JpiExtension {
*/
public String maskClasses;

public boolean pluginFirstClassLoader

/**
* Version of core that we depend on.
*/
@@ -67,11 +67,12 @@ class JpiManifest extends HashMap<String,Object> {
if(dep.length()>0)
this["Plugin-Dependencies"] = dep;

if (conv.pluginFirstClassLoader) {
this['PluginFirstClassLoader'] = true
}

// more TODO
/*
if(pluginFirstClassLoader)
mainSection.addAttributeAndCheck( new Attribute( "PluginFirstClassLoader", "true" ) );
if (project.getDevelopers() != null) {
mainSection.addAttributeAndCheck(new Attribute("Plugin-Developers",getDevelopersForManifest()));
}

0 comments on commit 01161be

Please sign in to comment.