The advice given to Carl for his cvs problem also helped me with this problem. I needed to add the path to the PVCS binary to PATH in ant.bat. Funny that this was only a problem on java 1.4 though.
Brian -----Original Message----- From: Good, Brian [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 3:02 PM To: 'Ant Users List' Subject: RE: Version of Java affecting get in Ant pvcs task? I tried JAVA_HOME=C:\j2sdk1.4.1 and still get the same error. I'm using the stable Ant 1.5 by the way. Is this more likely to be a bug in Ant or something obvious that I'm missing? I've verified that JAVA_HOME isn't set anywhere else but ant.bat. Brian -----Original Message----- From: Good, Brian [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 7:32 PM To: '[EMAIL PROTECTED]' Subject: Version of Java affecting get in Ant pvcs task? Hello all, I'm new to this list. I have a problem I can reliably duplicate. I'm running PVCS and Ant on Windows 2000 Professional. My ant build files have pvcs tasks in them. If I set JAVA_HOME=C:\jdk1.3.1_04 in ant.bat the gets work fine. However if I set JAVA_HOME=C:\j2sdk1.4.0_02 in ant.bat on the same system I get the following error in my log file. Anyone seen this or have any suggestions? Brian --------------------- Detected Java version: 1.4 in: C:\j2sdk1.4.0_02\jre Detected OS: Windows 2000 parsing buildfile D:\CPS020923\install_builds\build.xml with URI = file:D:/CPS020923/install_builds/build.xml Project base dir set to: D:\CPS020923\install_builds getcps: [pvcs] Executing 'pcli' with arguments: [pvcs] 'lvf' [pvcs] '-z' [pvcs] '-aw' [pvcs] '-prO:\CT_Products' [pvcs] '/ProjectFolder/AMAZON/CPS/*' [pvcs] [pvcs] The ' characters around the executable and arguments are [pvcs] not part of the command. BUILD FAILED file:D:/CPS020923/install_builds/build.xml:24: Failed executing: pcli lvf -z -aw -prO:\CT_Products /ProjectFolder/AMAZON/CPS/*. Exception: CreateProcess: pcli lvf -z -aw -prO:\CT_Products /ProjectFolder/AMAZON/CPS/* error=2 at org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs.runCmd(Pvcs.java:147) at org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs.execute(Pvcs.java:224) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 5 seconds -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
