Support Requests item #961275, was opened at 2004-05-26 20:45 Message generated for change (Comment added) made by hiscapness You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474852&aid=961275&group_id=54790
Category: None Group: None Status: Open Priority: 5 Submitted By: Andrew Davey (asdavey42) Assigned to: Nobody/Anonymous (nobody) Summary: Non-interrupting p4 tasks (especially p4change) Initial Comment: Hi, I use perforce for my SCM and have really liked the possibilities that the p4 suite of task offer towards maintaining a proper internal and shipping release process. Over the last two days I have been trying to map out my companies release procedure into a NAnt build file to ease the work involved and to ensure consistency across projects. So far I have had mixed results with the NAnt p4 tasks. Most of the problems I encountered were due to documentation issues - to be expected I suppose for unreleased features. Once I looked at the source code I was better able to understand how the author of the p4 tasks intented them to be used. One area that may have been overlooked is providing the ability to include the descriptive text for a changelist through a task property. Currently (and this is the default way the perforce command line client performs thses operations), whenever a new change list is created, a text editor (in my case notepad) opens up, with a populated text file that I am supposed to edit, save and exit before perforce continues. This text file contains some fields that are supposed to be filled out for the perforce client. This of course means that the nant build file cannot be executed without someone there to fill in the necessary details (as the entire build process stops until the text form is filled out, saved and the text editor closed). The perforce client does support reading this text form from a redirected standard input, which would be ideal. If this was supported then you could have a p4change task that looked like this: <p4change changelist="update-build-number" description="The build number text file is being updated for the lastest internal release" /> I would be happy to develop such a solution within the current framework and submit a patch. But I would be more interested in discussing the plans/design for the p4 suite to get an idea of what functionality it will be intended to support. I would also be willing, if required to produce some documentation or article(s) on the use of the p4 tasks to demonstrate what can be achieved etc. Andy ---------------------------------------------------------------------- Comment By: cappy popp (hiscapness) Date: 2004-08-18 10:20 Message: Logged In: YES user_id=360954 I have fixed this locally due to similar needs. I have also changed the <p4client> task so that it can take a clientspec from stdin or a stream as well. Therefore, you can now do something like: <p4print file="//depot/path/clientspec" outputfile="clientspec"/> <p4client fromfile="clientspec"/> I am unsure if anyone is interested in my posting this or adding it to the project; I am a sourceforge project neophyte (developing for them, certainly not using them :) ). Please comment or advise ---------------------------------------------------------------------- Comment By: Andrew Davey (asdavey42) Date: 2004-06-02 08:57 Message: Logged In: YES user_id=1050734 Jeff, I would be happy to help in either a development, testing or documenting capacity. I have nearly finished my build script (you would think I was writing an epic given the time it has taken me), and have been able to achieve most of the desired p4 functionality through the p4 tasks, exec tasks, and calls into the Perforce class. Once I finish I do plan to write an article/document on what steps I have taken to get my required processes. Once this is done, I would be happy to discuss some of my thoughts towards enhanced functionality etc. I've never contributed to an online project before, let alone a sourceforge one, so I am little unfamiliar as to which sections comments should be posted to etc etc (ie I have a horrible feeling that what I'm about to post is going to appear as a comment/adjustment to my original post and not as a seperate item). Any pointers in this regards would be greatly appreciated. Andy ---------------------------------------------------------------------- Comment By: Jeff Hemry (jdhemry) Date: 2004-05-27 12:27 Message: Logged In: YES user_id=1051235 Andrew, Well it looks like I'm the culprit here. Sorry for the lack of documentation. As far as the plans/design for the P4 suite, one of my intentions was to follow the design laid out by the p4 tasks in ant http://ant.apache.org/manual/OptionalTasks/perforce.html but I deviated from that path in a few places. I would be happy to work with you to clean up my tasks or work on documentation. Thanks, Jeff ---------------------------------------------------------------------- Comment By: Ian MacLean (ianm74) Date: 2004-05-27 00:08 Message: Logged In: YES user_id=321872 Hi Andrew, I was the original author of a couple of the p4 tasks, the rest being implemented by Jeff Hemry. Your suggestion of adding a description attribute is a good one - certainly we don't want to be popping up editors during an unattended build process. It would also be useful to ue the xml nodes text body for multiline discriptions, like: <p4change changelist="update-build-number" > The build number text file is being updated for the lastest internal release </p4change> as to the ongoing plans/design for the p4 tasks - why not post your thoughts/ideas to the nant-contrib dev list at: [EMAIL PROTECTED] and we can get responses from interested parties. Your offer to produce docs is also much appreciated. Ian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474852&aid=961275&group_id=54790 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer