为什么xp下ant 用vssget任务时出错!而2000正常?

06-08-25 big1980

<target name="InitVss" depends="init">
  <property name="vss.path" value="/Complete/InternalDomain/Test"/>
  <property name="vssdir" location="C:\Program Files\Microsoft Visual SourceSafe"/>
  <property name="vssdatabase" location="D:\VSS\databases\test"/>
  <property name="vss.username" value="test" />
  <property name="vss.password" value="test" />
 </target>

 <target name="VssGetFile" depends="InitVss">
  <vssget localPath="${src}" 
   serverPath="${vssdatabase}" 
   ssdir="${vssdir}"
   login="${vss.username},${vss.password}" 
   vsspath="${vss.path}/${src}"
   autoresponse="Y"
   recursive="true"
   quiet="true"
   writable="true"/>

   <vssget localPath="${war}" 
   serverPath="${vssdatabase}" 
   ssdir="${vssdir}"
   login="${vss.username},${vss.password}" 
   vsspath="${vss.path}/${war}"
   autoresponse="Y"
   recursive="true"
   quiet="true"
   writable="true"/>

   <vssget localPath="${build}" 
   serverPath="${vssdatabase}" 
   ssdir="${vssdir}"
   login="${vss.username},${vss.password}" 
   vsspath="${vss.path}/${build}"
   autoresponse="Y"
   recursive="true"
   quiet="true"
   writable="true"/>
 </target>

出错图片如上?这到底是什么原因?!急

big1980
2006-08-25 13:14

补充一点,ant命令行还出现

VssGetFile:

BUILD FAILED

java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.Execute.patchEnvironment(Execute.java:4
29)
        at org.apache.tools.ant.taskdefs.Execute.getEnvironment(Execute.java:318
)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
        at org.apache.tools.ant.taskdefs.optional.vss.MSVSS.run(MSVSS.java:187)
        at org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET.execute(MSVSSGET.
java:182)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
<p>

big1980
2006-08-25 16:15

解决了,ant 的版本1.4太低,用1.65就没问题了,晕!