Hi,
I haven't tried that, but I think it will work. What i did over the weekend was to specify
the project in the exec-get
target, as follows:
<target name="exec-get">
<!-- Gets all the source code from the VSS repository using exec -->
<exec executable="ss.exe" dir=".">
<arg value="get"/>
<arg value="$/ibis dev/java"/>
<arg value="-R"/>
</exec>
</target>
It worked, but this is exactly the situation that I'm trying to avoid, because I may not use
the same project always.
Any ideas?
Alex
-----Original Message-----
From: Hobbs, Gareth [mailto:Gareth.Hobbs@astrazeneca.com]
Sent: Monday, September 13, 2004 3:00 AM
To: 'Ant Users List'
Subject: RE: SourceSafe syntax error
Alex - have you tried it on a Sourcesafe project that does not contain a
space in the name?
Cheers,
Gareth
-----Original Message-----
From: Silva, Alejandro [mailto:Alejandro.Silva@Honeywell.com]
Sent: 11 September 2004 00:35
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|