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 18850] New: - Visual Source Safe History Does Not Allow Specific Users.
Date Wed, 09 Apr 2003 10:54:53 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=18850>.
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=18850

Visual Source Safe History Does Not Allow Specific Users.

           Summary: Visual Source Safe History Does Not Allow Specific
                    Users.
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: andylehane@hotmail.com


Hi,

When using the <vsshistory> task, the user attribute is ignored. I have fixed 
this locally in the 
org\apache\tools\ant\taskdefs\optional\vss\MSVSSHISTORY.java file :

    /**
     * Executes the task.
     * <p>
     * Builds a command line to execute ss and then calls Exec's run method
     * to execute the command line.
     */
    public void execute() throws BuildException {
        Commandline commandLine = new Commandline();
        int result = 0;

        // first off, make sure that we've got a command and a vssdir and a 
label ...
        if (getVsspath() == null) {
            String msg = "vsspath attribute must be set!";
            throw new BuildException(msg, location);
        }

        // now look for illegal combinations of things ...

        // build the command line from what we got the format is
        // ss History elements [-H] [-L] [-N] [-O] [-V] [-Y] [-#] [-?]
        // as specified in the SS.EXE help
        commandLine.setExecutable(getSSCommand());
        commandLine.createArgument().setValue(COMMAND_HISTORY);

        // VSS items
        commandLine.createArgument().setValue(getVsspath());

        // -I-
        commandLine.createArgument().setValue("-I-");  // ignore all errors

        // -V
        // Label an existing file or project version
        getVersionDateCommand(commandLine);
        getVersionLabelCommand(commandLine);

        // -R   
        if (m_Recursive) {
            commandLine.createArgument().setValue(FLAG_RECURSION);
        }

        // -B / -D / -F-
        if (m_Style.length() > 0) {
            commandLine.createArgument().setValue(m_Style);
        }

        // -Y
        getLoginCommand(commandLine);

        // =======================================================
        //  ADD THE USER NAME TO THE COMMAND LINE                
        getUserCommand(commandLine);
        // =======================================================              

        // -O
        getOutputCommand(commandLine);

        System.out.println("***: " + commandLine);
        
        result = run(commandLine);
        if (result != 0) {
            String msg = "Failed executing: " + commandLine.toString();
            throw new BuildException(msg, location);
        }

    }

Mime
View raw message