hudson.scm
Class SubversionReleaseSCM.ModuleLocation

java.lang.Object
  extended by hudson.scm.SubversionReleaseSCM.ModuleLocation
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SubversionReleaseSCM

public static final class SubversionReleaseSCM.ModuleLocation
extends java.lang.Object
implements java.io.Serializable

small structure to store local and remote (repository) location information of the repository. As a addition it holds the invalid field to make failure messages when doing a checkout possible

See Also:
Serialized Form

Field Summary
 java.lang.String local
          Local directory to place the file to.
 java.lang.String remote
          Subversion URL to check out.
 
Constructor Summary
SubversionReleaseSCM.ModuleLocation(java.lang.String remote, java.lang.String local)
           
 
Method Summary
 SubversionReleaseSCM.ModuleLocation getExpandedLocation(hudson.model.AbstractBuild<?,?> build)
          Expand location value based on Build parametric execution.
 org.tmatesoft.svn.core.wc.SVNRevision getRevision(org.tmatesoft.svn.core.wc.SVNRevision defaultValue)
          Figures out which revision to check out.
 org.tmatesoft.svn.core.SVNURL getSVNURL()
          Gets remote as SVNURL.
 java.lang.String getURL()
          Returns the pure URL portion of remote by removing possible "@NNN" suffix.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

remote

public final java.lang.String remote
Subversion URL to check out. This may include "@NNN" at the end to indicate a fixed revision.


local

public final java.lang.String local
Local directory to place the file to. Relative to the workspace root.

Constructor Detail

SubversionReleaseSCM.ModuleLocation

public SubversionReleaseSCM.ModuleLocation(java.lang.String remote,
                                           java.lang.String local)
Method Detail

getURL

public java.lang.String getURL()
Returns the pure URL portion of remote by removing possible "@NNN" suffix.


getSVNURL

public org.tmatesoft.svn.core.SVNURL getSVNURL()
                                        throws org.tmatesoft.svn.core.SVNException
Gets remote as SVNURL.

Throws:
org.tmatesoft.svn.core.SVNException

getRevision

public org.tmatesoft.svn.core.wc.SVNRevision getRevision(org.tmatesoft.svn.core.wc.SVNRevision defaultValue)
Figures out which revision to check out. If remote is url@rev, then this method returns that specific revision.

Parameters:
defaultValue - If "@NNN" portion is not in the URL, this value will be returned. Normally, this is the SVN revision timestamped at the build date.

getExpandedLocation

public SubversionReleaseSCM.ModuleLocation getExpandedLocation(hudson.model.AbstractBuild<?,?> build)
Expand location value based on Build parametric execution.

Parameters:
build - Build instance for expanding parameters into their values
Returns:
Output ModuleLocation expanded according to Build parameters values.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.