ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=51795

             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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: apache@timbojones.net
    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.

Repro:

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

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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message