站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VcsAdditionalCommand (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.cmdline
Interface VcsAdditionalCommand


public interface VcsAdditionalCommand


Nested Class Summary
static interface VcsAdditionalCommand.ImmediateOutput
          When the command supports an immediate output (output of partial lines), it should implement this interface and allow to add text listeners that are called with the immediate text output.
 
Method Summary
 boolean exec(Hashtable vars, String[] args, CommandOutputListener stdoutListener, CommandOutputListener stderrListener, CommandDataOutputListener stdoutDataListener, String dataRegex, CommandDataOutputListener stderrDataListener, String errorRegex)
          This method is used to execute the command.
 

Method Detail

exec

public boolean exec(Hashtable vars,
                    String[] args,
                    CommandOutputListener stdoutListener,
                    CommandOutputListener stderrListener,
                    CommandDataOutputListener stdoutDataListener,
                    String dataRegex,
                    CommandDataOutputListener stderrDataListener,
                    String errorRegex)
This method is used to execute the command.

Parameters:
vars - the variables that can be passed to the command
args - the command line parametres passed to it in properties
stdoutListener - listener of the standard output of the command
stderrListener - listener of the error output of the command
stdoutDataListener - listener of the standard output of the command which satisfies regex dataRegex
dataRegex - the regular expression for parsing the standard output
stderrDataListener - listener of the error output of the command which satisfies regex errorRegex
errorRegex - the regular expression for parsing the error output
Returns:
true if the command was succesfull false if some error occured.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.