|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
A task that fetches source files from a PVCS archive 19-04-2001
The task now has a more robust parser. It allows for platform independant file paths and supports file names with (). Thanks to Erik Husby for bringing the bug to my attention. 27-04-2001
UNC paths are now handled properly. Fix provided by Don Jeffery. He also added an UpdateOnly flag that, when true, conditions the PVCS get using the -U option to only update those files that have a modification time (in PVCS) that is newer than the existing workfile.
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Pvcs()
Creates a Pvcs object |
Method Summary | |
void |
addPvcsproject(PvcsProject p)
handles <pvcsproject> subelements |
void |
execute()
Called by the project to let the task do it's work. |
java.lang.String |
getForce()
Get value of force |
boolean |
getIgnoreReturnCode()
Get value of ignorereturncode |
java.lang.String |
getLabel()
Get value of label |
java.lang.String |
getPromotiongroup()
Get value of promotiongroup |
java.lang.String |
getPvcsbin()
Get name of the PVCS bin directory |
java.lang.String |
getPvcsproject()
Get name of the project in the PVCS repository |
java.util.Vector |
getPvcsprojects()
Get name of the project in the PVCS repository |
java.lang.String |
getRepository()
Get network name of the PVCS repository |
boolean |
getUpdateOnly()
|
java.lang.String |
getWorkspace()
Get name of the workspace to store the retrieved files |
protected int |
runCmd(Commandline cmd,
ExecuteStreamHandler out)
|
void |
setForce(java.lang.String f)
Specifies the value of the force argument |
void |
setIgnoreReturnCode(boolean b)
If set to true the return value from executing the pvcs commands are ignored. |
void |
setLabel(java.lang.String l)
Specifies the name of the label argument |
void |
setPromotiongroup(java.lang.String w)
Specifies the name of the promotiongroup argument |
void |
setPvcsbin(java.lang.String bin)
Specifies the location of the PVCS bin directory |
void |
setPvcsproject(java.lang.String prj)
Specifies the name of the project in the PVCS repository |
void |
setRepository(java.lang.String repo)
Specifies the network name of the PVCS repository |
void |
setUpdateOnly(boolean l)
If set to true files are gotten only if newer than existing local files. |
void |
setWorkspace(java.lang.String ws)
Specifies the name of the workspace to store retrieved files |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pvcs()
Method Detail |
protected int runCmd(Commandline cmd, ExecuteStreamHandler out)
public void execute() throws BuildException
Task
execute
in class Task
BuildException
- Something is stopping the build...public java.lang.String getRepository()
public void setRepository(java.lang.String repo)
repo
- Stringpublic java.lang.String getPvcsproject()
public void setPvcsproject(java.lang.String prj)
prj
- Stringpublic java.util.Vector getPvcsprojects()
public java.lang.String getWorkspace()
public void setWorkspace(java.lang.String ws)
ws
- Stringpublic java.lang.String getPvcsbin()
public void setPvcsbin(java.lang.String bin)
ws
- Stringpublic java.lang.String getForce()
public void setForce(java.lang.String f)
repo
- String (yes/no)public java.lang.String getPromotiongroup()
public void setPromotiongroup(java.lang.String w)
repo
- Stringpublic java.lang.String getLabel()
public void setLabel(java.lang.String l)
repo
- Stringpublic boolean getIgnoreReturnCode()
public void setIgnoreReturnCode(boolean b)
public void addPvcsproject(PvcsProject p)
PvcsProject
- public boolean getUpdateOnly()
public void setUpdateOnly(boolean l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |