You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/09/09 21:45:58 UTC

DO NOT REPLY [Bug 51795] New: P4Change fails if any files are open for edit

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.

[Bug 51795] P4Change fails if any files are open for edit

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51795

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Antoine Levy-Lambert <an...@apache.org> ---
Ant 1.9.0 does not include Perforce tasks any more. The Ant tasks supplied by
Perforce Inc which are based on the native p4java API can be used instead.

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