That is cause of:
In Ant's MSVSS.java file, in [run] method:
    protected int run(Commandline cmd) {
        try {
            Execute exe = new Execute(new LogStreamHandler(this, 
 
Project.MSG_INFO,
 
Project.MSG_WARN));

            // If location of ss.ini is specified we need to set the 
            // environment-variable SSDIR to this value
            if (m_serverPath != null) {
                String[] env = exe.getEnvironment();
                if (env == null) {
                    env = new String[0];
                }
                String[] newEnv = new String[env.length + 1];

/*BEGIN: Note to these command*/
                for (int i = 0; i < env.length ; i++) {
                    newEnv[i] = env[i];
                }
                newEnv[env.length] = "SSDIR=" + m_serverPath;
/*END: Note to these command*/

                exe.setEnvironment(newEnv);
            }
            
            exe.setAntRun(project);
            exe.setWorkingDirectory(project.getBaseDir());
            exe.setCommandline(cmd.getCommandline());
            return exe.execute();
        } catch (java.io.IOException e) {
            throw new BuildException(e, location);
        }
    }

I think should change to:

/*BEGIN: Note to these command*/
                for (int i = 0; i < env.length ; i++) {
                    newEnv[i + 1] = env[i];
                }
                newEnv[0] = "SSDIR=" + m_serverPath;
/*END: Note to these command*/


-----Original Message-----
That is not PATH environment variable, that is SSDIR environment
variable.
Thanks so much

-----Original Message-----
When PATH environment variable has a path point to an srcsafe.ini. Ant
will use this path instead of path that was set by serverPath =
"specified_path".
How can I do to use path that was set by serverPath = "specified_path"
Best regards
Chien

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to