ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20721] New: - no comment option for vsscheckout task
Date Thu, 12 Jun 2003 19:13:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20721>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20721

no comment option for vsscheckout task

           Summary: no comment option for vsscheckout task
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: sbridges.geo@yahoo.com


There is no comment argument to vsscheckout (but there is for vsscheckin).

To add this you can use the following code (changes from 1.5.3 source).

change to org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT

78a79
> 	private String m_Comment = null;
115a117,118
> 		// -C
> 		getCommentCommand(commandLine);
212a217,236
>     /**
>      * Set the comment to apply; optional.
>      * <p>
>      * If this is null or empty, it will be replaced with "-" which
>      * is what SourceSafe uses for an empty comment.
>      */
>     public void setComment(String comment) {
>         if (comment.equals("") || comment.equals("null")) {
>             m_Comment = "-";
>         } else {
>             m_Comment = comment;
>         }
>     }
> 
> 	public void getCommentCommand(Commandline cmd) {
> 		if(m_Comment == null)
> 			return;
> 		else
> 			cmd.createArgument().setValue(FLAG_COMMENT+m_Comment);
> 	}
> 




change to org.apache.tools.ant.taskdefs.optional.vss.MSVSS

265a266,267
>     /** */
>     public static final String FLAG_COMMENT = "-C";

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message