Thank you thank you thank you That seemed to be the problem.. IntelliJ used the system path from its startup point..
Thank you all very much! Greetz Lieve >>> [EMAIL PROTECTED] 28/01/2005 11:42:12 >>> Try to take care of this PATH at the system environment level. Make sure cvs is found is the $PATH ot %PATH% when you open a DOS cmd or Unix shell. This will fix PATH on IntelliJ like tools, as the system environment is pre-set. -Satya -----Original Message----- From: Lieve Van den Heuvel [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 5:36 AM To: user@ant.apache.org Subject: Re: CVS command with Ant in IntelliJ Hi James Thank you for your answer but I know that the exec command doesn't make the thing work but it was just one of my try-outs.. I tried to add the path to the cvs.exe in IntelliJ but it seems that he doesn't find it afterall and that's the thing that's causing me these frustrations. So is there any other way to indicate to ant where the cvs.exe is located? Thank you very much! Greetings Lieve >>> [EMAIL PROTECTED] 28/01/2005 11:28:54 >>> On Fri, 2005-01-28 at 10:17, Lieve Van den Heuvel wrote: > Hi, > > I'm just new to the mailing list but I'm experiencing a very > "frustrating" problem. I've written a buildscript for our project but > I'm not able to execute a cvs-command in the buildfile. > > The environment I'm working in: > Ant: 1.6.2 > CVSNT (from winCVS -> latest stable version) > Idea IntelliJ 4.5.3 > > When I try to execute the target at the command line, everyting works > perfectly. The error I get is: > > Caught exception: CreateProcess: cvs > -d:pserver:[EMAIL PROTECTED]:/nasdata/CVS > update -d -l ids/java error=2 > > I know what the exception means, he can't find the cvs.exe. I already > tried to set it as an additional path for the ant execution -> didn't > work, I also > tried to run a command file before the execution, setting the path -> > didn't work, so now I'm pretty much out of ideas to figure out what is > going wrong. > > Does anybody have any idea what could cause this problem? > exec causes a new instance of your shell to run, and sets up environment variables for that instance, hence any changes aren't persisted when the exec task ends. Is there a particular reason you can't add the location of the cvs executable to the system PATH or user PATH, as suggested in http://ant.apache.org/manual/CoreTasks/cvs.html > I would be very very thankful for your answer! > > This is a part of the build file: > <!-- The build.properties files contains the cvs.repository property > --> > <property file="conf/build.properties"/> > <property name="cvs.package.dependencies" value="ids/java/lib"/> > <property name="cvs.package.conf" value="ids/java/conf"/> > > <target name="set.environment"> > <exec dir="${basedir}/${conf.dir}" executable="cmd.exe"> > <arg value="/c setenv.cmd"/> > </exec> > </target> > > > <target name="dependencies" depends="set.environment" > description="Update the external libraries that are used from CVS"> > <cvs command="update -d" cvsroot="${cvs.repository}" > package="${cvs.package.dependencies}" dest="."/> > <cvs command="update -d" cvsroot="${cvs.repository}" > package="${cvs.package.conf}" dest="."/> > <cvs command="update -d -l" cvsroot="${cvs.repository}" > package="ids/java" dest="."/> > </target> > > Greetz > Lieve > > > ______________________________________________________________________ > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Privileged Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]