|
AntXtras/Svn4Ant-1.1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.idaremedia.antx.AssertableTask
com.idaremedia.svn4ant.TaskSkeleton
com.idaremedia.svn4ant.client.ClientTaskSkeleton
com.idaremedia.svn4ant.client.solo.BaseTask
com.idaremedia.svn4ant.client.solo.IncomingTask
com.idaremedia.svn4ant.client.solo.SvnCatTask
Ant task for the "svn cat" subcommand. To save a single item's contents it is easiest to use the shortcut inlined parameters to define the source item. For multiple items, or to specify a post-download filter, you must use the nested <item> elements. For working copy-based sources, the default revision is the WORKING revision (the local edits); for repository based sources, the default revision is the HEAD revision. Use the 'revision' parameter (and optional peg revisions) to define other choices.
Example Usage:
<svncat username="build" password="build-secret"
from="svn://svn.lab/myproject/trunk/build/modulelist"/>
<svncat username="build" password="build-secret"
from="/nightlybuilds/myproject/build/modulelist" revision="${rev}"/>
<svncat credential="repo" from="docs/README@${pegrev}"
toproperty="readme.txt" keywords="no"/>
<svncat workingcopy="${pristine.dir}/docs" revision="${rev}">
<item from="README" tofile="${tmp}/README"/>
<item from="LICENSE" tofile="${tmp}/LICENSE"/>
<item from="RELEASENOTES,in" tofile="${tmp}/RELEASENOTES">
<filterchain>
<expandproperties/>
</filterchain>
</item>
</svncat>
<svncat credential="repo.dev" haltiferror="no" feedback="none">
<item from="README" tovariable="readme.txt"/>
<item from="CHANGELOG" tovariable="changelog.txt"/>
</svncat>
| Field Summary |
| Fields inherited from class com.idaremedia.svn4ant.client.solo.BaseTask |
m_opts, m_revProperty |
| Fields inherited from class com.idaremedia.svn4ant.TaskSkeleton |
m_rqlink |
| Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
| Constructor Summary | |
SvnCatTask()
Initializes a new svncat command instance. |
|
| Method Summary | |
void |
addConfiguredItem(ContentInstruction item)
Adds a new item to this cat command. |
void |
execute()
Tries to concatenate one or more items to the named output sinks. |
protected String |
getSubcommandCN()
Returns "cat" always. |
void |
setAppend(boolean append)
Tells this task to append captured information to an existing store. |
void |
setFrom(String urlOrWCpath)
Sets the location of the item to be fetched. |
void |
setKeywords(boolean expand)
Tells this command whether subversion should try expanding special keyword markers in text based files. |
void |
setRevision(String revid)
Defines the source revision to concatenate. |
void |
setToFile(File tofile)
Sets the file where this command saves item content. |
void |
setToProperty(String property)
Sets the property where this command saves item content. |
void |
setToReference(String refid)
Sets the project reference where this command saves item content. |
void |
setToVariable(String variable)
Sets the variable where this command saves item content. |
void |
setWorkingCopy(String wcpath)
Tells this command to get it's repository information from a local working copy instead of the named credential. |
protected void |
verifyCanExecute_(String calr)
Ensures that any inlined shortcut item has all its required fields defined. |
| Methods inherited from class com.idaremedia.svn4ant.client.solo.IncomingTask |
revision, revision, tickleWorkingCopy, updateCompleted |
| Methods inherited from class com.idaremedia.svn4ant.client.solo.BaseTask |
finalUrl, finalUrl, force, ignoreexternals, linkVerboseFeedback, recurse, repositoryUrl, setAuthCache, setConfigDir, setCredential, setPassword, setRevisionProperty, setStrict, setUsername, strict, updateOnlyUrl, updateOnlyWorkingCopy, updateSearch, verifyWorkingCopyOrUrl, workingCopy |
| Methods inherited from class com.idaremedia.svn4ant.TaskSkeleton |
getFailProperty, getFailVariable, getFeedbackLevel, isHaltIfError, problemOccured, problemOccured, setFailProperty, setFailVariable, setFeedback, setHaltIfError, toRequester |
| Methods inherited from class com.idaremedia.antx.AssertableTask |
checkIfProperty_, checkIfReference_, cvlabel_, ensure_, getAntXMsg, getAntXMsg, getAntXMsg, getAntXMsg, getDefaultMsgLevel, getMsg, getMsg, getMsg, getMsgId, getReferencedObject, getUISM, getUISMArgs, ignoreProjectProperties, init, initonce, log, maybeConfigure, newMsgGetter, newMsgGetter, newMsgGetter, reconfigure, require_, setIgnoreProjectProperties, setMsgId, syncChildTargetIfNull, uistrs, unconfigure, unexpected_, verify_, verifyInProject_, verifyInTarget_ |
| Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, perform, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.idaremedia.svn4ant.client.SvnOptions.All |
setFailProperty, setFailVariable, setFeedback |
| Methods inherited from interface com.idaremedia.antx.parameters.RecoveryEnabled |
isHaltIfError, setHaltIfError |
| Methods inherited from interface com.idaremedia.antx.apis.ProjectDependent |
getProject, setProject |
| Methods inherited from interface com.idaremedia.antx.apis.ScriptLocatable |
getLocation |
| Constructor Detail |
public SvnCatTask()
| Method Detail |
protected String getSubcommandCN()
getSubcommandCN in class BaseTaskSvnCommandNamepublic void addConfiguredItem(ContentInstruction item)
item - the item to concatenate (non-null)
org.apache.tools.ant.BuildException - if item is malformed (missing required 'from' field).
org.apache.tools.ant.BuildException - if a shortcut item is already defined.public void setKeywords(boolean expand)
expand - false to disable keyword expansion.public void setRevision(String revid)
revid - the source revision (non-null)public void setWorkingCopy(String wcpath)
wcpath - path to the local working copy
org.apache.tools.ant.BuildException - if named path is not a versioned directory.public void setFrom(String urlOrWCpath)
urlOrWCpath - either a path to local working copy or a repository url
org.apache.tools.ant.BuildException - if at least one nested item is already defined.public void setToFile(File tofile)
tofile - file into which all content saved (non-null)public void setToProperty(String property)
property - name of property (non-null)public void setToVariable(String variable)
variable - name of variable (non-null)public void setToReference(String refid)
refid - name of project reference (non-null)public void setAppend(boolean append)
append - true to append property content to existing store.protected void verifyCanExecute_(String calr)
org.apache.tools.ant.BuildException - if inlined parameter missing 'from' field.public void execute()
org.apache.tools.ant.BuildException - if unable to download file contents and our
haltiferror option is enabled.
|
AntXtras/Svn4Ant-1.1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||