ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51795] New: P4Change fails if any files are open for edit
Date Fri, 09 Sep 2011 19:45:58 GMT

             Bug #: 51795
           Summary: P4Change fails if any files are open for edit
           Product: Ant
           Version: 1.7.1
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Optional SCM tasks
    Classification: Unclassified

P4 server 2007.3 cannot handle an empty Files: section in a changelist
description.  It wants Files: to be populated or missing.  I do not know
whether this is true in more recent versions of p4.

In getEmptyChangelist() the P4Change task retains the Files: section header but
stops processing the changelist description when it encounters a filespec. 
Thus if any files are open in the default changelist when p4change runs, the
task fails silently.


<target name="increment-minor">
  <p4edit view="build.version" />
  <propertyfile file="build.version"
      comment="Build versioning properties">
    <entry key="minor"
      value="1" />
  <property file="build.version"
      prefix="" />
  <p4change description="Updating build version to
${}.${}." />
  <p4reopen view="build.version" tochange="${p4.change}" />
  <p4sumbit change="${p4.change}" />

Result: p4reopen fails; p4.change is not set.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message