Thanks for the responses. Turns out that I had a pause in the batch file that was being generated. The output was queued so I never saw anything until I happened to hit the enter key (total fluke). I also confirmed then that the timeout does not work yet.
-Aaron -----Original Message----- From: Oz Solomon [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 2:20 PM To: 'Sansone, Aaron' Subject: RE: [nant-dev] Problem with exec task and CMD/BAT files? NANT queues all the output so you see it all in one lump when the batch file exits. I sympathize with your situation. I had a very difficult time getting NANT to run some of my batch files properly... You might try changing your timeout setting. "30" == 30 milliseconds which I'm sure is too short. Maybe it's confusing NANT. -Oz -----Original Message----- From: Sansone, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 3:21 PM To: Oz Solomon Subject: RE: [nant-dev] Problem with exec task and CMD/BAT files? Thanks for your reply, unfortunately this doesn't work either. When you run this task do you see the echo output of the specific commands that are executed in your CMD File? Mine just hangs and nothing is ever run... Again, thanks for the prompt response. Regards, Aaron -----Original Message----- From: Oz Solomon [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 1:39 PM To: 'Sansone, Aaron' Subject: RE: [nant-dev] Problem with exec task and CMD/BAT files? Try using "cmd /c" i.e.: <exec verbose="true" basedir="${project.base.dir}" program="cmd" commandline="/c ${commandfile.name} ${sqlserver.name} ${database.name}" timeout="30"/> This works in our projects. -Oz -----Original Message----- From: Sansone, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 2:38 PM To: Nant-Developers (E-mail) Subject: [nant-dev] Problem with exec task and CMD/BAT files? I am having difficulty getting a CMD file to execute with NAnt. I'm using Win2000 and I have specified the following: <property name="project.base.dir" value="C:\Projects\Reference_Database"/> <property name="sqlserver.name" value="localhost\VSdotNET"/> <property name="database.name" value="Reference"/> <property name="commandfile.name" value="Create_Reference_Database.cmd"/> <target name="build-database" description="Install the database using the CMD File"> <exec verbose="true" basedir="${project.base.dir}" program="${commandfile.name}" commandline="${sqlserver.name} ${database.name}" timeout="30"/> </target> The CMD File (which is like a batch file) will not execute and hangs with the following lines: build-database: [exec] C:\Projects\Reference_Database\Create_Reference_Database.cmd localhost\VSdotNET Reference [exec] C:\Projects\Reference_Database>C:\Projects\Reference_Database\Create_Referen ce_D atabase.cmd localhost\VSdotNET Reference I can manually run the cmd from a command prompt and it executes without a problem. I've tried renaming it to a .bat file and I have the same problem. Thanks, -Aaron ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
