Browse Source

Make port attribute work for some "non-standard" CVS clients. submitted by Johann Herunter. PR 30124.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@705228 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
0140d366be
4 changed files with 22 additions and 1 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +5
    -0
      WHATSNEW
  3. +8
    -0
      contributors.xml
  4. +8
    -1
      src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java

+ 1
- 0
CONTRIBUTORS View File

@@ -141,6 +141,7 @@ Jesse Stockall
Jim Allers Jim Allers
Joerg Wassmer Joerg Wassmer
Joey Richey Joey Richey
Johann Herunter
John Sisson John Sisson
Jon Dickinson Jon Dickinson
Jon S. Stevens Jon S. Stevens


+ 5
- 0
WHATSNEW View File

@@ -446,6 +446,11 @@ Other changes:
* <cvsversion> is supposed to support CVSNT now. * <cvsversion> is supposed to support CVSNT now.
Bugzilla Report 31409. Bugzilla Report 31409.


* <cvs>' port attribute should now work for all clients that use the
environment variable CVS_PSERVER_PORT instead of the "official"
CVS_CLIENT_PORT.
Bugzilla Report 30124.

Changes from Ant 1.7.0 TO Ant 1.7.1 Changes from Ant 1.7.0 TO Ant 1.7.1
============================================= =============================================




+ 8
- 0
contributors.xml View File

@@ -592,6 +592,14 @@
<first>Joey</first> <first>Joey</first>
<last>Richey</last> <last>Richey</last>
</name> </name>
<name>
<first>Johann</first>
<last>Herunter</last>
</name>
<name>
<first>John</first>
<last>Sisson</last>
</name>
<name> <name>
<first>Jon</first> <first>Jon</first>
<last>Dickinson</last> <last>Dickinson</last>


+ 8
- 1
src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java View File

@@ -260,7 +260,7 @@ public abstract class AbstractCvsTask extends Task {
// native CVS stuff around (SM) // native CVS stuff around (SM)


// We can't do it ourselves as jCVS is GPLed, a third party task // We can't do it ourselves as jCVS is GPLed, a third party task
// outside of jakarta repositories would be possible though (SB).
// outside of Apache repositories would be possible though (SB).


Environment env = new Environment(); Environment env = new Environment();


@@ -269,6 +269,13 @@ public abstract class AbstractCvsTask extends Task {
var.setKey("CVS_CLIENT_PORT"); var.setKey("CVS_CLIENT_PORT");
var.setValue(String.valueOf(port)); var.setValue(String.valueOf(port));
env.addVariable(var); env.addVariable(var);

// non-standard environment variable used by CVSNT, WinCVS
// and others
var = new Environment.Variable();
var.setKey("CVS_PSERVER_PORT");
var.setValue(String.valueOf(port));
env.addVariable(var);
} }


/** /**


Loading…
Cancel
Save