Help! Howto 'cvs update -C' ???
"Callanan, Matthew" <[email protected]> Mon, 29 Mar 2004 19:02:41 -0600
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Using the following code I've managed to execute a "cvs update" command on a
CVS filesystem mounted via the NB3.6 Generic VCS CVS profile:
Command cmd = VcsManager.getDefault().createCommand("UPDATE", files);
CommandTask task = cmd.execute();
What I need to know is this: How do I specify the '-C' (get clean copy)
option to the 'update' command?
I noticed that org.netbeans.lib.cvsclient.command.update.UpdateCommand has a
setCleanCopy() method... is there a way I get an UpdateCommand object from
Command object?
I also noticed there is GET_CLEAN_COPY property in the cvs.xml vcs
profile... maybe I can use that somehow???
I also want to use as many core/generic methods as possible... i.e. the user
may have mounted a non-CVS VCS filesystem, so I need to be able to determine
if the filesystem supports the CVS -C option, and, if not, display a message
to the user.
(Please Cc. any responses to me... and if I've got the wrong mailing list
could someone please tell me the best place to post this?)
thanks,
-Matt Callanan