hudson.plugins.googlecode
Class GoogleCodeProjectProperty

java.lang.Object
  extended by hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
      extended by hudson.plugins.googlecode.GoogleCodeProjectProperty
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.JobProperty<?>>, hudson.tasks.BuildStep

public final class GoogleCodeProjectProperty
extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>

Property for AbstractProject that stores the associated Google Code website URL.

Author:
Kohsuke Kawaguchi, Erik Ramfelt

Nested Class Summary
static class GoogleCodeProjectProperty.DescriptorImpl
           
static interface GoogleCodeProjectProperty.PropertyRetriever
          Interface needed to remove the dependency of AbstractBuild and Project classes which are quite difficult to mock out.
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
 java.lang.String googlecodeWebsite
          Google Code website URL that this project uses.
 
Fields inherited from class hudson.model.JobProperty
owner
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
GoogleCodeProjectProperty(java.lang.String googlecodeWebsite)
           
 
Method Summary
 GoogleCodeProjectProperty.DescriptorImpl getDescriptor()
           
 java.lang.String getProjectName()
          Returns the project name for the google code property "Project's name must consist of a lowercase letter, followed by lowercase letters, digits, and dashes, with no spaces."
 
Methods inherited from class hudson.model.JobProperty
getJobAction, getProjectAction, perform, prebuild, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

googlecodeWebsite

public final java.lang.String googlecodeWebsite
Google Code website URL that this project uses. This value is normalized and therefore it always ends with '/'. Null if this is not configured yet.

Constructor Detail

GoogleCodeProjectProperty

@DataBoundConstructor
public GoogleCodeProjectProperty(java.lang.String googlecodeWebsite)
Method Detail

getProjectName

public java.lang.String getProjectName()
Returns the project name for the google code property "Project's name must consist of a lowercase letter, followed by lowercase letters, digits, and dashes, with no spaces."

Returns:
the project name

getDescriptor

public GoogleCodeProjectProperty.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.model.JobProperty<?>>
Overrides:
getDescriptor in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>


Copyright © 2008. All Rights Reserved.