ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Dyke <will.d...@bbc.co.uk>
Subject sourcesafe problems (error code 193)
Date Thu, 16 Aug 2001 17:03:18 GMT
I am having problems getting code from source safe using
ant v1.3. 

This may be related to building Ant v1.4b1 earlier (the
script worked before I did this) but I'm not sure.

Anyway, the build script I'm using is this:

<project name="fakebuild" default="wrapper" basedir=".">

  <!-- ant.properties must contain the following:
       1. username      sourcesafe username
       2. password      sourcesafe password
       3. dynamo.root   The root directory of the Dynamo installation
       4. ssdir         Sourcesafe directory where ss.exe lives
  -->
  <property file="ant.properties"/>

  <target name="wrapper">

    <!-- Get the latest build.xml file -->
    <vssget localPath="." writable="false"
            login="${username},${password}" ssdir="${ssdir}"
            vssPath="$/New Beeb - Phase 1/atg/ant/bin/build.xml"/>
    <ant antfile="build.xml" target="build-deploy"/>
  </target>
</project>

This gives the following results on the command line:

D:\ant\bin\build-deploy.xml:15: java.io.IOException: CreateProcess:
c:\progra~1\
devstudio\vss\win32\ss Get "$/New Beeb - Phase 1/atg/ant/bin/build.xml"
-GLD:\an
t\bin -I- -Ydykew31,sourcesafe error=193
--- Nested Exception ---
java.io.IOException: CreateProcess: c:\progra~1\devstudio\vss\win32\ss Get
"$/Ne
w Beeb - Phase 1/atg/ant/bin/build.xml" -GLD:\ant\bin -I-
-Ydykew31,sourcesafe e
rror=193
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:509)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
        at
org.apache.tools.ant.taskdefs.optional.vss.MSVSS.run(MSVSS.java:160)
        at
org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET.execute(MSVSSGET.
java:168)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 0 seconds

However, doing the vss get from the command line works:

D:\ant\bin> c:\progra~1\devstudio\vss\win32\ss Get "$/New Beeb - Phase
1/atg/ant
/bin/build.xml" -GLD:\ant\bin -I- -Ydykew31,sourcesafe
build.xml

If anyone has any idea what the error code means, or why this might be 
happening, I'd be very grateful.

Many thanks,
Will Dyke


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.

Mime
View raw message