Re: API for non-Mojo consumers

2007-07-15 Thread Alexander Horn
= ArtifactLocator.locateArtifact("org.junit") getBundleContext().installBundle(location.getPath()); } catch (BundleException installationException) { fail("Bundle could not be installed."); } } } On 7/14/07, Timothy Reilly <[EMAIL PROTECTED]> wrot

API for non-Mojo consumers

2007-07-14 Thread Alexander Horn
In a Mojo developer cookbook [1] I found the snippet of code that shows how to get the path of an artifact in the local repository. Namely, Set artifacts = project.getDependencyArtifacts(); for (Iterator artifactIterator = artifacts.iterator(); artifactIterator.hasNext();) { Artifact artifact =