public org.apache.tools.ant.types.Path toAntPath(List artifacts) { org.apache.tools.ant.types.Path path = new org.apache.tools.ant.types.Path(antProject); for (Iterator i = artifacts.iterator(); i.hasNext(); ) { RepoArtifact artifact = (RepoArtifact) i.next(); if (artifact.getLocalCopy() != null) { // Possible for "paths" type path.add( new org.apache.tools.ant.types.Path( antProject, artifact.getLocalCopy().getAbsolutePath())); } } return path; }