[EMAIL PROTECTED] wrote:
We are switching from Source Safe to Perforce and I am trying to use the
<p4...> tasks.
I am having a problem with the <p4change> command.
I am trying to create a changelist as part of my build script to hold
changes to files containing version numbers. When my script executes the
<p4change> task, Perforce insists on opening the new change list's
information in Notepad. (It requires manual intervention to CLOSE the
window.)
Apparently the underlying P4 command looks in the environment for the
P4EDITOR variable and if its not set, uses Notepad. <p4change> does not have
any attributes or elements which would allow me to set P4EDITOR and/or
suppress this behavior.
Any suggestions on how I can suppress this behavior? Is this a bug?
It looks that way - or just an omission. Looking at the underlying p4
behaviour it looks like it will spawn the editor unless you call p4
change with the -i paramater, passing the chnge description on stdin.
The p4change task needs to be fixed to take a value for the change
description and then to use -i when executing p4.exe. I'll have a look
at making this change when I get some time.
In the meantime you could work around it by calling p4 directly using
the <exec> task.
Ian
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users