Troy,
 
This should be fixed in NAntContrib 0.85 RC2. Let me know if it works for you.
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Troy Parsons
Sent: vrijdag 11 februari 2005 20:57
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] NAntContrib bug? (and feature request) - p4labelsync

p4labelsync doesn't seem to call p4 quite right (I'm using 0.85.1793.0; rc1).  If my target is as follows:

<target name="label">
    <p4label client="${p4.client}" label="project_subproject_v${assembly.version}" view="//std/project/subproject/..."/>
    <p4labelsync label="project_subproject_v${assembly.version}" client="${p4.client}"/>
</target>

Using verbose logging I see:

[p4labelsync] p4 -u username -c username_host labelsync
[p4labelsync] Starting 'p4 ( -u username -c username_host labelsync )' in 'D:\Troy\project\subproject'
[p4labelsync] Usage: labelsync [-a -d -n] -l label [files...]

It's not passing the name of the label (argument '-l labelname).  I have worked around it as follows:

<p4labelsync label="project_subproject_v${assembly.version}" client="${p4.client}">
    <arg line="-l project_subproject_v${assembly.version}"/>
</p4labelsync>

To give me:

[p4labelsync] p4 -u username -c username_host labelsync
[p4labelsync] Starting 'p4 ( -u username -c username_host labelsync  -l project_subproject_v2.6.666.0)' in 'D:\Troy\project\subproject'
[p4labelsync] //std/project/subproject/somefolder/somefile.exe#1 - added
[p4labelsync] //std/project/subproject/somefolder/someotherfile.bat#22 - added
etc...

My feature request is: add an option to allow locking a label.

Thanks!
Troy.

Reply via email to