Each commandline object has at most one instance of the argument class. This method calls this.createArgument(false).
this.createArgument(false)
235236237238239240241242243244245
String password = authenticationInfo.getPassword(); if ( putty && password != null ) { cl.createArg().setValue( "-pw" ); cl.createArg().setValue( password ); } // should check interactive flag, but scpexe never works in interactive mode right now due to i/o streams if ( putty ) {
241242243244245246247248249250251
} // should check interactive flag, but scpexe never works in interactive mode right now due to i/o streams if ( putty ) { cl.createArg().setValue( "-batch" ); } else { cl.createArg().setValue( "-o" ); cl.createArg().setValue( "BatchMode yes" );
245246247248249250251252253254255
{ cl.createArg().setValue( "-batch" ); } else { cl.createArg().setValue( "-o" ); cl.createArg().setValue( "BatchMode yes" ); } return cl; }
246247248249250251252253254255256
cl.createArg().setValue( "-batch" ); } else { cl.createArg().setValue( "-o" ); cl.createArg().setValue( "BatchMode yes" ); } return cl; }
276277278279280281282283284285286
int port = repository.getPort() == WagonConstants.UNKNOWN_PORT ? ScpHelper.DEFAULT_SSH_PORT : repository.getPort(); if ( port != ScpHelper.DEFAULT_SSH_PORT ) { cl.createArg().setLine( "-P " + port ); } if ( scpArgs != null ) { cl.createArg().setLine( scpArgs );
281282283284285286287288289290291
cl.createArg().setLine( "-P " + port ); } if ( scpArgs != null ) { cl.createArg().setLine( scpArgs ); } String resourceName = normalizeResource( resource ); String remoteFile = getRepository().getBasedir() + "/" + resourceName;
292293294295296297298299300301302
remoteFile = StringUtils.replace( remoteFile, " ", "\\ " ); String qualifiedRemoteFile = this.buildRemoteHost() + ":" + remoteFile; if ( put ) { cl.createArg().setValue( localFile.getName() ); cl.createArg().setValue( qualifiedRemoteFile ); } else { cl.createArg().setValue( qualifiedRemoteFile );
293294295296297298299300301302303
String qualifiedRemoteFile = this.buildRemoteHost() + ":" + remoteFile; if ( put ) { cl.createArg().setValue( localFile.getName() ); cl.createArg().setValue( qualifiedRemoteFile ); } else { cl.createArg().setValue( qualifiedRemoteFile ); cl.createArg().setValue( localFile.getName() );
297298299300301302303304305306307
cl.createArg().setValue( localFile.getName() ); cl.createArg().setValue( qualifiedRemoteFile ); } else { cl.createArg().setValue( qualifiedRemoteFile ); cl.createArg().setValue( localFile.getName() ); } fireSessionDebug( "Executing command: " + cl.toString() );
298299300301302303304305306307308
cl.createArg().setValue( qualifiedRemoteFile ); } else { cl.createArg().setValue( qualifiedRemoteFile ); cl.createArg().setValue( localFile.getName() ); } fireSessionDebug( "Executing command: " + cl.toString() ); try