| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (changerenumbered.xml)

This example Ant source code file (changerenumbered.xml) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

antoine, antoine, levy-lambert, levy-lambert, perforce, perforce

The changerenumbered.xml source code

<!-- author Antoine Levy-Lambert  -->
<!-- this file demonstrates that p4.change will be modified by p4submit -->
<!-- if the change number is modified by the Perforce daemon during the submission -->
<project name="build1" default="runtest">
  <target name="runtest">
    <property name="change1" value="${p4.change}" />
doing a first change ${change1}
    <property name="change2" value="${p4.change}" />
doing a second change ${change2}
    <p4edit view="//depot/foobar" change="${change1}" />
    <p4edit view="//depot/hello" change="${change2}" />
before submitting of hello change ${change2} p4.change is now ${p4.change}
    <p4submit change="${change2}"/>
after submitting of hello p4.change is now ${p4.change}
before submitting of foobar change ${change1}
    <p4submit change="${change1}"/>
after submitting of foobar p4.change is now ${p4.change}

Other Ant examples (source code examples)

Here is a short list of links related to this Ant changerenumbered.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.