src/main/org/apache/ant/compress/conditions/HasGroupName.java [31:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private TarResource ccResource;
    private org.apache.tools.ant.types.resources.TarResource antResource;
    private String name;

    public void add(org.apache.tools.ant.types.resources.TarResource r) {
        if (ccResource != null || antResource != null) {
            throw new BuildException("only one resource can be tested");
        }
        antResource = r;
    }

    public void add(TarResource r) {
        if (ccResource != null || antResource != null) {
            throw new BuildException("only one resource can be tested");
        }
        ccResource = r;
    }

    public void setName(String n) {
        name = n;
    }

    protected void validate() throws BuildException {
        if (ccResource == null && antResource == null) {
            throw new BuildException("you must specify a resource");
        }
        if (name == null) {
            throw new BuildException("name is required");
        }
    }

    @Override
    public boolean eval() throws BuildException {
        validate();
        String actual = ccResource != null
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/org/apache/ant/compress/conditions/HasUserName.java [31:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private TarResource ccResource;
    private org.apache.tools.ant.types.resources.TarResource antResource;
    private String name;

    public void add(org.apache.tools.ant.types.resources.TarResource r) {
        if (ccResource != null || antResource != null) {
            throw new BuildException("only one resource can be tested");
        }
        antResource = r;
    }

    public void add(TarResource r) {
        if (ccResource != null || antResource != null) {
            throw new BuildException("only one resource can be tested");
        }
        ccResource = r;
    }

    public void setName(String n) {
        name = n;
    }

    protected void validate() throws BuildException {
        if (ccResource == null && antResource == null) {
            throw new BuildException("you must specify a resource");
        }
        if (name == null) {
            throw new BuildException("name is required");
        }
    }

    @Override
    public boolean eval() throws BuildException {
        validate();
        String actual = ccResource != null
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



