summaryrefslogtreecommitdiff
path: root/buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php')
-rwxr-xr-x[-rw-r--r--]buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php b/buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php
index 0003c50f..87a9b63c 100644..100755
--- a/buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php
+++ b/buildscripts/phing/classes/phing/tasks/system/CvsPassTask.php
@@ -1,6 +1,6 @@
<?php
/*
- * $Id: CvsPassTask.php 59 2006-04-28 14:49:47Z mrook $
+ * $Id: c1e02a8d43f62c584ba2f1cd5a6f0cc690bceb94 $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
@@ -29,7 +29,7 @@ include_once 'phing/util/StringHelper.php';
*
* @author Hans Lellelid <hans@xmpl.org> (Phing)
* @author Jeff Martin <jeff@custommonkey.org> (Ant)
- * @version $Revision: 1.7 $
+ * @version $Id$
* @package phing.tasks.system
*/
class CVSPassTask extends Task {
@@ -84,9 +84,9 @@ class CVSPassTask extends Task {
throw new BuildException("password is required");
}
- $this->log("cvsRoot: " . $this->cvsRoot, PROJECT_MSG_DEBUG);
- $this->log("password: " . $this->password, PROJECT_MSG_DEBUG);
- $this->log("passFile: " . $this->passFile->__toString(), PROJECT_MSG_DEBUG);
+ $this->log("cvsRoot: " . $this->cvsRoot, Project::MSG_DEBUG);
+ $this->log("password: " . $this->password, Project::MSG_DEBUG);
+ $this->log("passFile: " . $this->passFile->__toString(), Project::MSG_DEBUG);
$reader = null;
$writer = null;
@@ -100,14 +100,14 @@ class CVSPassTask extends Task {
$line = null;
while (($line = $reader->readLine()) !== null) {
if (!StringHelper::startsWith($this->cvsRoot, $line)) {
- $buf .= $line . Phing::getProperty("line.separator");
+ $buf .= $line . PHP_EOL;
}
}
}
$pwdfile = $buf . $this->cvsRoot . " A" . $this->mangle($this->password);
- $this->log("Writing -> " . $pwdfile , PROJECT_MSG_DEBUG);
+ $this->log("Writing -> " . $pwdfile , Project::MSG_DEBUG);
$writer = new BufferedWriter(new FileWriter($this->passFile));
$writer->write($pwdfile);