Thanks Keith, Thanks Murali for taking intrest in my problem, I resolved the 
problem.....

pritesh

Quoting  [EMAIL PROTECTED]:

> Hi Pritesh,

You need<br>serverPath="\your-vss-servervss-sharepathtovss" in your Ant<br>task.
This path must be where the srcsafe.ini file is *on the<br>server*.

Hope this helps
Keith


-----Original<br>Message-----
From: Pritesh Saharey<br>[mailto:[EMAIL PROTECTED]
Sent: 28 January 2005 07:00
To: Ant<br>Users List
Subject: RE: Uff VSS, hanging


No boss its not working,<br>as I think vssget is trying to get the latest 
source code from local<br>m/c, as I am failing to understand that
how come VssGet task come's to<br>know that it has to get the latest source 
from remote m/c untill and<br>unless you supply some m/c name 
or its IP, beacuse I navigated to<br>'srcsafe.ini', 'ss.ini' files in local m/c 
there I found nothing which<br>can show me that VSS server 
is in remote m/c.

Actual scenario is<br>like this, I have to get the latest java source from VSS 
server which is<br>deployed on m/c Remote1 and my build.xml
file is running on m/c Remote2<br>(both m/c's are in LAN), now from this 
Remote1 m/c I have to fetch<br>latest source to Remote2 m/c. 
And after making changes in my build.xml<br>file as suggested by murali it 
started giving me error like<br>this



C:downloadstake>ant build.xml
Apache Ant version 1.6.0<br>compiled on December 18 2003
Buildfile: build.xml
Detected Java<br>version: 1.4 in: c:j2sdk1.4.2_03jre
Detected OS: Windows<br>2000
parsing buildfile C:downloadstakebuild.xml with URI 
=<br>file:///C:/downloads/take/build.xml
Project base dir set to:<br>C:downloadstake
Build sequence for target `release' is<br>[vssget-source, release]
Complete build sequence is [vssget-source,<br>release, company-info, ]

vssget-source:
   [vssget] No VSS database<br>(srcsafe.ini) found.  Use the SSDIR environment 
variable or run<br>netsetup.



BUILD FAILED
C:downloadstakebuild.xml:25: Failed<br>executing: "C:Program FilesMicrosoft 
Visual<br>StudioCommonVSSwin32ss" Get "$/Oversight Babylon(1.5)/Source 
Code"<br>-GLC:downloadsptek -I-  -R  -W -Yprite
shs,****   With a return code<br>of 100
        
at<br>org.apache.tools.ant.taskdefs.optional.vss.MSVSS.execute(MSVSS.java:228)<br>
        
at<br>org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
  <br>     at org.apache.tools.ant.Task.perform(Task.java:401)
        at<br>org.apache.tools.ant.Target.execute(Target.java:338)
        at<br>org.apache.tools.ant.Target.performTasks(Target.java:365)
        at<br>org.apache.tools.ant.Project.executeTarget(Project.java:1237)
       <br>at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
     <br>  at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at<br>org.apache.tools.ant.Main.startAnt(Main.java:220)
        at<br>org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at<br>org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

Total<br>time: 0 seconds

And this what I am doing

<target<br>name="vssget-source"
                description="getting the latest source<br>code">
                <vssget<br>login="login,pass"
                                localPath="C:downloadstake"
                           <br>serverPath="C:"
                                ssdir="C:Program FilesMicrosoft 
Visual<br>StudioCommonVSSwin32"
                                vsspath="/Orion Carmel(1.5)/Source<br>Code"
                                recursive="true"
                                writable="true"
                                failonerror="true"<br>
                                />
</target>

Or shall I conclude that we can only use VssGet<br>task in local m/c i.e. if I 
had to use VssGet task in my build.xml file<br>than build.xml file has
to be on the m/c where VSS server is<br>running.

Can anyone help me out, I will be thakful to you. Atleast<br>some comments from 
where I can get an idea that VssGet task is really<br>useful
from getting source from a remote m/c or<br>not.

Pritesh

Quoting  [EMAIL PROTECTED]:

> 
<br>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<br>connect<br>to that 
dirve before you run the ant script.

     the follwiong<br>snippet works fine for me
          <vssget localPath="${home}/src" <br>  <br>      
                     label="V01"
                     login="${login}"
         <br>  <br>        vsspath="$/root/java2/*.*"
                     serverPath="x:"              <br> <br>  
                  <br>writable="false"/>

thanks,
Murali

-----Original<br>Message-----
From: Pritesh Saharey<br>[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005<br>5:32<br>AM
To: user@ant.apache.org
Subject: Uff VSS, hanging


Hi All
 <br>  <br> I am trying to get latest code from VSS but it hangs 
after<br>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<br>this<br>nothing happans, I also gone 
through<br>http://marc.theaimsgroup.com/?l=ant-user&m=103523403507111&w=2,
but<br>the<br>result is same, the VSS server is in LAN and you have to first 
login<br>to<br>that m/c(intell59) and than you can download the
latest source code<br>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<br>result<br>same hangs the build, can anybody help me 
out 

Thanks 
Pritesh<br>Saharey

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



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


Reply via email to