4 messages in com.perforce.perforce-user[p4] p4 labelsync in Ant
FromSent OnAttachments
Yoshimitsu, Stacy D.24 Mar 2003 18:58 
Moon, Ed24 Mar 2003 19:54 
Steve Smythe24 Mar 2003 20:12 
Roberts, Mike (Thoughtworks)25 Mar 2003 08:18 
Subject:[p4] p4 labelsync in Ant
From:Yoshimitsu, Stacy D. (SYOS@northropgrumman.com)
Date:03/24/2003 06:58:15 PM
List:com.perforce.perforce-user

Hello,

Does anyone know how to do a p4 labelsync in Ant's build script? Here's part of my Ant's build.xml file:

<target name="createLabel" depends="init"> <p4label name="${build.name}.${version}build${build.num}" desc="Label for ${build.name} ${version}build${build.num}" lock ="locked" view ="//depot/Source/..." /> <p4sync label="${build.name}.${version}build${build.num}" /> </target>

Now, I've created a label, but <p4sync label="${build.name}.${version}build${build.num}" /> is trying to sync my client w/ the label. Of course my label is now empty. What I'm trying to do is to do a p4 labelsync -l <labelname> to sync what I have in the local directory to the label. How do you do that in Ant's build script?

Thanks,

Stacy