String dest = IvyPatternHelper.substitute(destPattern, artifact);
ModuleRevisionId mrid = artifact.getModuleRevisionId(); if (isM2compatible()) { mrid = convertM2IdForResourceSearch(mrid); }  String dest = IvyPatternHelper.substitute(destPattern, mrid.getOrganisation(), mrid.getName(), mrid.getRevision(), artifact.getName(), artifact.getType(), artifact.getExt());
    public void publish(Artifact artifact, File src, boolean overwrite) throws IOException {        String destPattern;        if ("ivy".equals(artifact.getType()) && !getIvyPatterns().isEmpty()) {            destPattern =  (String)getIvyPatterns().get(0);        } else {            destPattern =  (String)getArtifactPatterns().get(0);        }        String dest = IvyPatternHelper.substitute(destPattern, artifact);        _repository.put(src, dest, overwrite);        Message.info("\tpublished "+artifact.getName()+" to "+dest);    }