ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <>
Subject RE: Perforce tasks
Date Fri, 21 Jun 2002 09:42:30 GMT

Thanks for you feedback. Can you submit a patch for the documentation to

As for changing p4counter - well, the perms required to update counters in
perforce are quiet "powerful". Since these grant a whole bunch of perms, I
haven't actually found the counter to be of much use. Have you seen the
counter task? I'd rather use this with a p4edit and p4submit to keep the
build number in a file. The other way is to use the script task and do
something like

<target name="label">
<p4counter name="buildnumber" property=""/>
<script language="javascript">
var count;
count = parseInt(label.getProject().getProperty(""));
if(isNaN(count)) count =0;
<p4counter name="buildnumber" value="${}"/>

But anyway, feel free to change the code - it's not mine anymore, it's
everybodies/anybodies - and submit a patch to ant-dev.

Oh and BTW, this'll probably open up the mutable properties can of worms
again ;-)


PS. Again, I dont mind answering direct but could you keep you mails to
ant-dev or ant-user? That way they get into the archive and everyone
benefits. Ta.

-----Original Message-----
From: MARZIOU,GAEL (HP-France,ex1)
Sent: 6/21/02 10:29 AM
Subject: Perforce tasks

Hi Les and Kirk,

First, let me thank you for developing the Perforce ant tasks.

I found an error in p4counter documentation, last example is wrong:

<p4counter name="last-clean-build" property="${}" />

Property should contain the name of property and not its value, so it

<p4counter name="last-clean-build" property="" />

I need a new feature for p4counter, possibility to increment a counter,
have thought of adding a new attribute "increment":

<p4counter name="last-clean-build" increment="1" />

would increment last-clean-build counter by 1

<p4counter name="last-clean-build" increment="1"
property="" />

would increment last-clean-build counter by 1 and set the property with
updated value.

What do you think of this feature?

I was planning to implement it myself but I would like to know if you
agree to include it in official release.
Or maybe there is a simpler solution that could be implemented using
ant task.


Gael Marziou

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message