public TfsCommand createCommand( ScmProviderRepository r, ScmFileSet f, ScmVersion v ) { String serverPath = ( (TfsScmProviderRepository) r ).getServerPath(); TfsCommand command = new TfsCommand( "get", r, f, getLogger() ); command.addArgument( serverPath ); if ( v != null && !v.equals( "" ) ) { String vType = ""; if ( v.getType().equals( "Tag" ) ) { vType = "L"; } if ( v.getType().equals( "Revision" ) ) { vType = "C"; } command.addArgument( "-version:" + vType + v.getName() ); } return command; }
public TfsCommand createCommand( ScmProviderRepository r, ScmFileSet f, ScmVersion v ) { String serverPath = ( (TfsScmProviderRepository) r ).getServerPath(); TfsCommand command = new TfsCommand( "get", r, f, getLogger() ); command.addArgument( serverPath ); if ( v != null && !v.equals( "" ) ) { String vType = ""; if ( v.getType().equals( "Tag" ) ) { vType = "L"; } if ( v.getType().equals( "Revision" ) ) { vType = "C"; } command.addArgument( "-version:" + vType + v.getName() ); } return command; }
public TfsCommand createGetCommand( ScmProviderRepository r, ScmFileSet f, ScmVersion v, boolean recursive ) { TfsCommand command = new TfsCommand( "get", r, f, getLogger() ); if ( recursive ) { command.addArgument( "-recursive" ); } command.addArgument( "-force" ); if ( v != null && !v.equals( "" ) ) { String vType = ""; if ( v.getType().equals( "Tag" ) ) { vType = "L"; } if ( v.getType().equals( "Revision" ) ) { vType = "C"; } command.addArgument( "-version:" + vType + v.getName() ); } command.addArgument( f.getBasedir().getAbsolutePath() ); return command; }
public TfsCommand createGetCommand( ScmProviderRepository r, ScmFileSet f, ScmVersion v, boolean recursive ) { TfsCommand command = new TfsCommand( "get", r, f, getLogger() ); if ( recursive ) { command.addArgument( "-recursive" ); } command.addArgument( "-force" ); if ( v != null && !v.equals( "" ) ) { String vType = ""; if ( v.getType().equals( "Tag" ) ) { vType = "L"; } if ( v.getType().equals( "Revision" ) ) { vType = "C"; } command.addArgument( "-version:" + vType + v.getName() ); } command.addArgument( f.getBasedir().getAbsolutePath() ); return command; }
getLogger().debug( version.getType() + ": " + version.getName() );
getLogger().debug( version.getType() + ": " + version.getName() );