ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurd...@yahoo.com>
Subject RE: Execute failed for exec to hit VSS...
Date Mon, 16 Oct 2000 20:50:10 GMT

Hi,

Which JVM are you using?  If you are using JDK 1.2 or 1.1, try getting rid
of the trailing '\' from the value of ${VSSpath}.  The older JVMs don't
escape trailing '\' characters in arguments passed to Windows, so this may
be causing problems.


Adam
  -----Original Message-----
  From: Daniel Rosner [mailto:drosner@interbind.com]
  Sent: Tuesday, 17 October 2000 4:22 AM
  To: 'ant-user@jakarta.apache.org'
  Subject: RE: Execute failed for exec to hit VSS...


  More info about this:

  I changed to use the new EXEC- am trying various incantations...

  The first one of the following exec commands works, the second doesn't

  <property name="VSSpath" value="C:\Program Files\Microsoft Visual
Studio\VSS\win32\" />
  <property name="VSScmdPullJava" value="SS.EXE GET
${javaVSSProject} -R -GL${javaSourceDir} -GCD -I-" />

  <exec executable="${VSSpath}ss.exe">
          <arg line="${VSScmdPullJava}" />
  </exec>

  <exec dir="${VSSpath}" executable="ss.exe">
          <arg line="${VSScmdPullJava}" />
  </exec>

  -Dan


  > -----Original Message-----
  > From: Daniel Rosner
  > Sent: Monday, October 16, 2000 1:44 PM
  > To: 'ant-user@jakarta.apache.org'
  > Subject: Execute failed for exec to hit VSS...
  >
  >
  > When I go to cmd shell in NT, I can execute this:
  >
  > cd C:\Program Files\Microsoft Visual Studio\VSS\win32\
  > SS.EXE GET $/TOPI/java/ -R -GLC:\coding\topi/java/ -GCD -I-
  >
  > and it works. This works under the current release, but not
  > under Ant version 1.2rc1 compiled on October 13 2000.
  >
  > More error message below; please advise...
  > -R
  >
  >
  >
  > > Attached is the build file, you can't see the vars, but I
  > > think you get the
  > > idea.
  > >
  > > Sorry for the quick send without being able to do more
  > > debugging myself,
  > > -D
  > >
  > >
  > > BUILD FAILED
  > >
  > > C:\coding\ourapp\.\makefiles\GetFromVSS.xml:29: Execute failed:
  > > java.io.IOException: CreateProcess: SS.EXE GET $/TOPI/java/ -R
  > > -GLC:\coding\topi/java/ -GCD -I- error=2
  > > java.io.IOException: CreateProcess: SS.EXE GET $/TOPI/java/ -R
  > > -GLC:\coding\topi/java/ -GCD -I- error=2
  > >     at java.lang.Win32Process.create(Native Method)
  > >     at java.lang.Win32Process.<init>(Unknown Source)
  > >     at java.lang.Runtime.execInternal(Native Method)
  > >     at java.lang.Runtime.exec(Unknown Source)
  > >     at java.lang.reflect.Method.invoke(Native Method)
  > >     at
  > > org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.ex
  > > ec(Execute.jav
  > > a)
  > >     at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java)
  > >     at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java)
  > >     at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java)
  > >     at org.apache.tools.ant.Target.execute(Target.java)
  > >     at org.apache.tools.ant.Project.runTarget(Project.java)
  > >     at org.apache.tools.ant.Project.executeTarget(Project.java)
  > >     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java)
  > >     at org.apache.tools.ant.Target.execute(Target.java)
  > >     at org.apache.tools.ant.Project.runTarget(Project.java)
  > >     at org.apache.tools.ant.Project.executeTarget(Project.java)
  > >     at org.apache.tools.ant.Project.executeTargets(Project.java)
  > >     at org.apache.tools.ant.Main.runBuild(Main.java)
  > >     at org.apache.tools.ant.Main.main(Main.java)
  > >
  > > > -----Original Message-----
  >


Mime
View raw message