The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view file or directory that the command will operate on | No |
| graphical | Displays a graphical dialog during the update | No |
| log | Specifies a log file for ClearCase to write to | No |
| overwrite | Specifies whether to overwrite hijacked files or not | No |
| rename | Specifies that hijacked files should be renamed with a .keep extension | No |
| currenttime | Specifies that modification time should be written as the current time. Either currenttime or preservetime can be specified. | No |
| preservetime | Specifies that modification time should preserved from the VOB time. Either currenttime or preservetime can be specified. | No |
| failonerr | Throw an exception if the command fails. Default is true | No |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FLAG_CURRENTTIME
-ctime flag -- modified time is written as the current time |
| public static final String | FLAG_GRAPHICAL
-graphical flag -- display graphical dialog during update operation |
| public static final String | FLAG_LOG
-log flag -- file to log status to |
| public static final String | FLAG_NOVERWRITE
-noverwrite flag -- do not overwrite hijacked files |
| public static final String | FLAG_OVERWRITE
-overwrite flag -- overwrite hijacked files |
| public static final String | FLAG_PRESERVETIME
-ptime flag -- modified time is written as the VOB time |
| public static final String | FLAG_RENAME
-rename flag -- rename hijacked files with .keep extension |
| private boolean | |
| private boolean | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public boolean | |
| public boolean | |
| public String | |
| private void | getLogCommand(Commandline
containing the command line string with or without the log flag and path appended cmd)Get the 'log' command |
| public boolean | Returns: boolean containing status of overwrite flagGet overwrite hijacked files status |
| public boolean | |
| public boolean | |
| public void | setCurrentTime(boolean
the status to set the flag to ct)If true, modification time should be written as the current time. |
| public void | setGraphical(boolean
the status to set the flag to graphical)If true, displays a graphical dialog during the update. |
| public void | |
| public void | |
| public void | setPreserveTime(boolean
the status to set the flag to pt)If true, modification time should be preserved from the VOB time. |
| public void | setRename(boolean
the status to set the flag to ren)If true, hijacked files are renamed with a .keep extension. |
| FLAG_CURRENTTIME | back to summary |
|---|---|
| public static final String FLAG_CURRENTTIME -ctime flag -- modified time is written as the current time | |
| FLAG_GRAPHICAL | back to summary |
|---|---|
| public static final String FLAG_GRAPHICAL -graphical flag -- display graphical dialog during update operation | |
| FLAG_LOG | back to summary |
|---|---|
| public static final String FLAG_LOG -log flag -- file to log status to | |
| FLAG_NOVERWRITE | back to summary |
|---|---|
| public static final String FLAG_NOVERWRITE -noverwrite flag -- do not overwrite hijacked files | |
| FLAG_OVERWRITE | back to summary |
|---|---|
| public static final String FLAG_OVERWRITE -overwrite flag -- overwrite hijacked files | |
| FLAG_PRESERVETIME | back to summary |
|---|---|
| public static final String FLAG_PRESERVETIME -ptime flag -- modified time is written as the VOB time | |
| FLAG_RENAME | back to summary |
|---|---|
| public static final String FLAG_RENAME -rename flag -- rename hijacked files with .keep extension | |
| mCtime | back to summary |
|---|---|
| private boolean mCtime | |
| mGraphical | back to summary |
|---|---|
| private boolean mGraphical | |
| mLog | back to summary |
|---|---|
| private String mLog | |
| mOverwrite | back to summary |
|---|---|
| private boolean mOverwrite | |
| mPtime | back to summary |
|---|---|
| private boolean mPtime | |
| mRename | back to summary |
|---|---|
| private boolean mRename | |
| CCUpdate | back to summary |
|---|---|
| public CCUpdate() | |
| checkOptions | back to summary |
|---|---|
| private void checkOptions(Commandline cmd) Check the command line options. | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Executes the task. Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.
| |
| getCurrentTime | back to summary |
|---|---|
| public boolean getCurrentTime() Get current time status
| |
| getGraphical | back to summary |
|---|---|
| public boolean getGraphical() Get graphical flag status
| |
| getLog | back to summary |
|---|---|
| public String getLog() Get log file
| |
| getLogCommand | back to summary |
|---|---|
| private void getLogCommand(Commandline cmd) Get the 'log' command
| |
| getOverwrite | back to summary |
|---|---|
| public boolean getOverwrite() Get overwrite hijacked files status
| |
| getPreserveTime | back to summary |
|---|---|
| public boolean getPreserveTime() Get preserve time status
| |
| getRename | back to summary |
|---|---|
| public boolean getRename() Get rename hijacked files status
| |
| setCurrentTime | back to summary |
|---|---|
| public void setCurrentTime(boolean ct) If true, modification time should be written as the current time. Either currenttime or preservetime can be specified.
| |
| setGraphical | back to summary |
|---|---|
| public void setGraphical(boolean graphical) If true, displays a graphical dialog during the update.
| |
| setLog | back to summary |
|---|---|
| public void setLog(String log) Sets the log file where cleartool records the status of the command.
| |
| setOverwrite | back to summary |
|---|---|
| public void setOverwrite(boolean ow) If true, overwrite hijacked files.
| |
| setPreserveTime | back to summary |
|---|---|
| public void setPreserveTime(boolean pt) If true, modification time should be preserved from the VOB time. Either currenttime or preservetime can be specified.
| |
| setRename | back to summary |
|---|---|
| public void setRename(boolean ren) If true, hijacked files are renamed with a .keep extension.
| |