ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Kazakov" <Vad...@quadrus.com>
Subject RE: SourceSafe syntax error
Date Mon, 13 Sep 2004 14:58:42 GMT
Ok you need to use the serverPath attribute to specify where the ss.ini
file resides.

-----Original Message-----
From: Silva, Alejandro [mailto:Alejandro.Silva@Honeywell.com] 
Sent: September 10, 2004 5:35 PM
To: 'user@ant.apache.org'
Subject: SourceSafe syntax error

Hi All,

I've been looking for an answer to this in the archive, but with no luck
so far :(

Anyway, the problem is that I'm trying to get some files from a VSS
repository, but I always get the same error. Her's
what I've done so far:
1. I verified that I could do this operation using the command line. So
I set the PATH and SSDIR environment variables
and tested the following command: ss get "$/ibis dev/java" -R. It worked
right away.
2. Created the following properties and target in my build file:

  <property name="vss.project.dir" location="$/ibis dev/java/"/>

  <target name="vss-get">
    <!-- Gets all the source code from the VSS repository using vssget
-->
    <vssget vsspath="${vss.project.dir}"
            recursive="true"/>
  </target>

Tested and got the following result:
C:\webapps\ibis-test>ant vss-get
Buildfile: build.xml

vss-get:
   [vssget] $C:\webapps\ibis-test\$\ibis dev\java is not valid
SourceSafe syntax


BUILD FAILED
C:\webapps\ibis-test\build.xml:26: Failed executing: ss Get
"$C:\webapps\ibis-te
st\$\ibis dev\java"  -I-  -R      With a return code of 100

Total time: 2 seconds

Actually I tried this many times with different options, but got the
same result.
3. Then I thought of a different approach so I created the following
properties and target:

  <property name="vss.bin.dir"     location="C:\Program Files\Microsoft
Visual Studio\Common\VSS\win32"/>
  <property name="vss.server.dir"  location="S:\SHARED\IBIS\WIBIS\0003
Construction\SS"/>

  <target name="exec-get">
    <!-- Gets all the source code from the VSS repository using exec -->
    <exec executable="ss.exe" dir=".">
      <env key="PATH" path="${vss.bin.dir}"/>
      <env key="SSDIR" path="${vss.server.dir}"/>
        
      <arg value="get"/>
      <arg value="${vss.project.dir}"/>
      <arg value="-R"/>
    </exec>
  </target>

Tested and got the following result:
C:\webapps\ibis-test>ant exec-get
Buildfile: build.xml

exec-get:
     [exec] C:\webapps\ibis-test\$\ibis dev\java is not valid SourceSafe
syntax
     [exec] Result: 100

BUILD SUCCESSFUL
Total time: 2 seconds

Why does Ant keep adding my current dir to the project dir? Any ideas on
how to solve this issue?

Thanks in advance,

Alex Silva
Honeywell - GBS Mexico
+52 (444) 826-2577

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message