Browse Source

update the described flag when necessary...

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272896 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
d1723671a9
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      proposal/sandbox/clearcase/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCFile.java

+ 4
- 3
proposal/sandbox/clearcase/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCFile.java View File

@@ -65,13 +65,13 @@ import org.apache.tools.ant.BuildException;
public class CCFile extends File {

/** is it checkedout */
private boolean checkedout;
private boolean checkedout = false;

/** is it under source control ? */
private boolean versioned;
private boolean versioned = false;

/** was this file already described once ? */
private boolean described;
private boolean described = false;

public CCFile(String parent, String child) {
super(parent, child);
@@ -131,5 +131,6 @@ public class CCFile extends File {
String stdout = res.getStdout();
versioned = (stdout.indexOf("view private object") == -1);
checkedout = (stdout.indexOf("checkout") != -1);
described = true;
}
}

Loading…
Cancel
Save