On 10/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > There is a what appears to be long known bug with the <p4change> task in > that it launches notepad awaiting a user to edit/close it before > continuing. Clearly this is not at all desirable in an automated build. > > I found this posting from two years ago... > http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg08395.ht > ml > > Does anyone have an actual example they can post of exactly what they > are doing in their NAnt scripts to replace this task? We are using > 0.85RC4.
We use shell commands and add the description on the submit action. We build a text file, submit.template.txt over the course of the compile with a variety of notes and output, then use it as the checkin comment. It's not very robust (I imagine quotes or tokens in submit.template.txt would break it), but it does give an idea of what to do. <property name="submit.template" value="${nant.project.basedir}\submit.template.txt" /> <property name="files.to.edit" value="//depot/foo/..." /> <exec program="p4.exe"> <arg line="edit ${files.to.edit}" /> </exec> <loadfile property="description" file="${submit.template}" /> <exec program="p4.exe"> <arg line="submit -d "${description}"" /> </exec> -- -Chris ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users