Hi Pritesh, You need serverPath="\\your-vss-server\vss-share\path\to\vss" in your Ant task. This path must be where the srcsafe.ini file is *on the server*.
Hope this helps Keith -----Original Message----- From: Pritesh Saharey [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 07:00 To: Ant Users List Subject: RE: Uff VSS, hanging No boss its not working, as I think vssget is trying to get the latest source code from local m/c, as I am failing to understand that how come VssGet task come's to know that it has to get the latest source from remote m/c untill and unless you supply some m/c name or its IP, beacuse I navigated to 'srcsafe.ini', 'ss.ini' files in local m/c there I found nothing which can show me that VSS server is in remote m/c. Actual scenario is like this, I have to get the latest java source from VSS server which is deployed on m/c Remote1 and my build.xml file is running on m/c Remote2 (both m/c's are in LAN), now from this Remote1 m/c I have to fetch latest source to Remote2 m/c. And after making changes in my build.xml file as suggested by murali it started giving me error like this C:\downloads\take>ant build.xml Apache Ant version 1.6.0 compiled on December 18 2003 Buildfile: build.xml Detected Java version: 1.4 in: c:\j2sdk1.4.2_03\jre Detected OS: Windows 2000 parsing buildfile C:\downloads\take\build.xml with URI = file:///C:/downloads/take/build.xml Project base dir set to: C:\downloads\take Build sequence for target `release' is [vssget-source, release] Complete build sequence is [vssget-source, release, company-info, ] vssget-source: [vssget] No VSS database (srcsafe.ini) found. Use the SSDIR environment variable or run netsetup. BUILD FAILED C:\downloads\take\build.xml:25: Failed executing: "C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\ss" Get "$/Oversight Babylon(1.5)/Source Code" -GLC:\downloads\ptek -I- -R -W -Yprite shs,**** With a return code of 100 at org.apache.tools.ant.taskdefs.optional.vss.MSVSS.execute(MSVSS.java:228) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) Total time: 0 seconds And this what I am doing <target name="vssget-source" description="getting the latest source code"> <vssget login="login,pass" localPath="C:\downloads\take" serverPath="C:\" ssdir="C:\Program Files\Microsoft Visual Studio\Common\VSS\win32" vsspath="/Orion Carmel(1.5)/Source Code" recursive="true" writable="true" failonerror="true" /> </target > Or shall I conclude that we can only use VssGet task in local m/c i.e. if I had to use VssGet task in my build.xml file than build.xml file has to be on the m/c where VSS server is running. Can anyone help me out, I will be thakful to you. Atleast some comments from where I can get an idea that VssGet task is really useful from getting source from a remote m/c or not. Pritesh Quoting [EMAIL PROTECTED]: > This may happen when you give the wrong login,password,re-check that<br>once again (case-sensitivity etc) and also try by mapping your<br>\intell59CProgram FilesMicrosoft Visual StudioCommonVSS to x:<br>drive and keep the value as serverPath="x:" and make sure you connect<br>to that dirve before you run the ant script. the follwiong<br>snippet works fine for me <vssget localPath="${home}/src" <br> label="V01" login="${login}" <br> vsspath="$/root/java2/*.*" serverPath="x:" <br> <br>writable="false"/> thanks, Murali -----Original<br>Message----- From: Pritesh Saharey<br>[mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 5:32<br>AM To: user@ant.apache.org Subject: Uff VSS, hanging Hi All <br> I am trying to get latest code from VSS but it hangs after Username,<br>this is what Iam doing <target<br>name="vssget-source" description="getting the latest source<br>code"> <vssget<br>login="login,pass" localPath="C:downloadstake" <br>serverPath="\intell59CProgram FilesMicrosoft Visual<br>StudioCommonVSS" ssdir="C:Program FilesMicrosoft Visual<br>StudioCommonVSSwin32" vsspath="/Orion Carmel(1.5)/Source<br>Code" recursive="true" writable="true" /> </target><br>> Console output: C:downloadstake>ant build.xml Buildfile:<br>build.xml vssget-source: [vssget] Username: login After this<br>nothing happans, I also gone through<br>http://marc.theaimsgroup.com/?l=ant-user&m=103523403507111&w=2, but the<br>result is same, the VSS server is in LAN and you have to first login to<br>that m/c(intell59) and than you can download the latest source code by<br>supplying your login id passwd to VSS, I also tried by first manully<br>login to intell59 m/c and than tried to run build file but the result<br>same hangs the build, can anybody help me out Thanks Pritesh<br>Saharey -------------------------------------------------------------<br>-------- To unsubscribe, e-mail: [EMAIL PROTECTED] For<br>additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]