|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<SCM>
hudson.scm.SCMDescriptor<DarcsScm>
org.jenkinsci.plugins.darcs.DarcsScmDescriptor
@Extension public class DarcsScmDescriptor
Inner class of the SCM descriptor. Contains the global configuration options as fields.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self |
| Field Summary | |
|---|---|
private String |
darcsExe
The executable. |
private static String |
DEFAULT_EXE
Default name of the Darcs binary. |
private static String |
DISPLAY_NAME
String displayed in the Jenkins front end. |
private static Logger |
LOGGER
Logging facility. |
| Fields inherited from class hudson.scm.SCMDescriptor |
|---|
generation, repositoryBrowser |
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
DarcsScmDescriptor()
Dedicated constructor. |
|
| Method Summary | |
|---|---|
boolean |
configure(StaplerRequest req,
net.sf.json.JSONObject formData)
|
FormValidation |
doDarcsExeCheck(String value)
Validated the given executable string if it is a valid Darcs executable. |
String |
getDarcsExe()
Returns the executable. |
String |
getDisplayName()
Returns the display name. |
void |
load()
Own implementation of XML configuration loading to inject Jenkins.XSTREAM2 for unmarshalling. |
SCM |
newInstance(StaplerRequest req,
net.sf.json.JSONObject formData)
|
| Methods inherited from class hudson.scm.SCMDescriptor |
|---|
getBrowserDescriptors, isApplicable, isBrowserReusable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Logger LOGGER
private static final String DISPLAY_NAME
private static final String DEFAULT_EXE
private String darcsExe
| Constructor Detail |
|---|
public DarcsScmDescriptor()
| Method Detail |
|---|
public void load()
Jenkins.XSTREAM2 for unmarshalling.
TODO Remove this, if it possible to inject XStream into parent implementation.
Since 1.494 Dexcriptor#getConfigFile() is not private anymore. override load()
and call getConfigFile().getXStream().addCompatibilityAlias()
public void load() {
getConfigFile().getXStream().addCompatibilityAlias("org.jenkinsci.plugins.darcs.DarcsScm$DescriptorImpl",
DarcsScmDescriptor.class);
super.load();
}
load in class SCMDescriptor<DarcsScm>public String getDisplayName()
getDisplayName in class Descriptor<SCM>public String getDarcsExe()
darcsExe is null DEFAULT_EXE will be returned
public SCM newInstance(StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
newInstance in class Descriptor<SCM>Descriptor.FormException
public boolean configure(StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
configure in class Descriptor<SCM>Descriptor.FormException
public FormValidation doDarcsExeCheck(@QueryParameter
String value)
value - string from the plugin configuration field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||