Plugin is now optional

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15898 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-28 20:25:44 +00:00
1 parent 03b398024a
commit 29697efdfa
3 files changed
+26 -18

No files matched your search

+8
View File
@@ -229,4 +229,12 @@ public abstract class Plugin implements Saveable {
return new XmlFile(Hudson.XSTREAM,
new File(Hudson.getInstance().getRootDir(),wrapper.getShortName()+".xml"));
}
/**
* Dummy instance of {@link Plugin} to be used when a plugin didn't
* supply one on its own.
*
* @since 1.288
*/
public static final Plugin NONE = new Plugin() {};
}