Hello. We are using ant 1.5.1 and made some changes to org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin.java. These changes provide to new flags: rm and from.
[158][a101b79_dev]/ccvobs/projekte/scm/src/java/de/dvg/scm/ant/taskdefs/optional/clearcase>diff DVGCheckin.java CCCheckin.java 106,110d105 < * <td>rm</td> < * <td>Keeps no copy of the file</td> < * <td>No</td> < * <tr> < * <tr> 115,119d109 < * <tr> < * <td>from</td> < * <td>Specify the source to check in from. It is necessary to set the keepcopy or rm attribute</td> < * <td>No</td> < * <tr> 123,124d112 < * @author <a href="mailto:[EMAIL PROTECTED]">Oliver Hartmann</a> < * @author <a href="mailto:[EMAIL PROTECTED]">Mark Stehr</a> 126d113 < 133d119 < private boolean m_Rm = false; 135d120 < private String m_From = null; 185,194d169 < if (getFrom() != null) { < // -from source-pname < getFromSourceCommand(cmd); < if ((getKeepCopy())|(getRm())) { < // log("o.k. set keepcopy attribute or set rm attribute"); < } else { < log("If you set the from attribute, it is necessary to set the keepcopy or rm attribute"); < } < } < 210,214d184 < if (getRm()) { < // -rm < cmd.createArgument().setValue(FLAG_RM); < } < 316,334d285 < * If true, keeps no copy of the file. < * < * @param rm the status to set the flag to < */ < public void setRm(boolean rm) { < m_Rm = rm; < } < < /** < * Get rm flag status < * < * @return boolean containing status of rm flag < */ < < public boolean getRm() { < return m_Rm; < } < < /** 353,360d303 < /** < * Set From string < * < * @param from the from string < */ < public void setFrom(String from) { < m_From = from; < } 363,390d305 < * Get from string < * < * @return String containing the source from to check in < */ < public String getFrom() { < return m_From; < } < < /** < * Get the 'fromSource' command < * < * @return the 'from' command if the attribute was specified, otherwise an empty string < * < * @param CommandLine containing the command line string with the from flag and string appended < */ < private void getFromSourceCommand(Commandline cmd) { < if (getFrom() != null) { < /* Had to make two separate commands here because if a space is < inserted between the flag and the value, it is treated as a < Windows filename with a space and it is enclosed in double < quotes ("). This breaks clearcase. < */ < cmd.createArgument().setValue(FLAG_FROM); < cmd.createArgument().setValue(getFrom()); < } < } < < /** 450,453d364 < * -rm flag -- keeps no copy of the file < */ < public static final String FLAG_RM = "-rm"; < /** 457,460d367 < /** < * -from flag -- file containing the source to check in from < */ < public static final String FLAG_FROM = "-from"; [159][a101b79_dev]/ccvobs/projekte/scm/src/java/de/dvg/scm/ant/taskdefs/optional/clearcase> Mark -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
