src/main/org/apache/ant/compress/conditions/HasGroupId.java [32:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private CommonsCompressArchiveResource ccResource;
    private TarResource antResource;
    private int id = -1;

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

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

    public void setId(int i) {
        id = i;
    }

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

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



src/main/org/apache/ant/compress/conditions/HasUserId.java [32:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private CommonsCompressArchiveResource ccResource;
    private TarResource antResource;
    private int id = -1;

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

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

    public void setId(int i) {
        id = i;
    }

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

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



