Actually I have come to the conclusion that the <p4change> task is broken. I
have looked at the source code and have some ideas on how to fix it (and
hopefully when things settle down in my work, I can take the time to submit
a "fixed" version to the community.)

Having looked at the code, I believe it's broken because it winds up calling
p4.exe twice when creating a changelist. It calls p4.exe the first time when
examining the attributes to find and/or create a changelist with the
specifed description and then again to either delete (if delete="yes") or
"create" the change. But since the first call created the changelist, the
second forces it to be edited. The fix is to ensure that p4.exe only gets
called once when creating a change.

In the short term, I am using a custom task to create the change. (It uses
some of the existing utility code to parform the work and include all of the
info from the <p4set> task.)

Is anyone else out there using the <p4xxx> tasks? (My original question is
over a week old.)

-Tony

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman
Sent: Wednesday, November 09, 2005 9:34 AM
To: Nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] Perforce p4change command

[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.
>
Can't you use the <setenv> task to set the P4EDITOR environment variable?

Gary




-------------------------------------------------------
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


_______________________________ 

This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential. 

If the reader of the message is not the intended recipient or an authorized
representative of the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by e-mail
and delete the message and any attachments from your system. 




-------------------------------------------------------
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

Reply via email to