[p4] Ant and p4.change property not getting set

Niggemyer, Kendall bniggemyer at sabercorp.com
Tue Jul 25 06:44:01 PDT 2006

Haven't checked on the status of this bug for a few years so I guess if
you are hitting it then it must still be around.  What version of ANT
are you using?

What I do is when I get the value for ${p4.change} I write it out to a
file.  When I need the value again I read it back in.  Hackey, but it

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Branko Peteh
Sent: Monday, July 24, 2006 8:17 PM
To: perforce-user at perforce.com
Subject: [p4] Ant and p4.change property not getting set


I'm running into the same problem, as posted few years ago:


According to the ant manual for perforce tasks, the p4change command for
requesting new changelists is supposed to set ${p4.change} property,
which is to be used in subsequent perforce tasks (p4edit, and p4submit).
The problem is that the property is not getting set and the subsequent
p4 command, p4edit in my case fails with:

[p4edit] error: Invalid changelist number '${p4.change}'.

Does anyone know what is wrong and what to do about it?

Many thanks,

perforce-user mailing list  -  perforce-user at perforce.com

More information about the perforce-user mailing list