RoboVMResolver { public File resolveAndUnpackRoboVMDistArtifact(String version) throws IOException { MavenResolvedArtifact distTarArtifact = resolveRoboVMDistArtifact(version); File distTarFile = distTarArtifact.asFile(); File unpackBaseDir = new File(distTarFile.getParent(), "unpacked"); if (unpackBaseDir.exists() && distTarArtifact.isSnapshotVersion()) { getLog().debug("Deleting directory for unpacked snapshots: " + unpackBaseDir); FileUtils.deleteDirectory(unpackBaseDir); } unpack(distTarFile, unpackBaseDir); File unpackedDir = new File(unpackBaseDir, "robovm-" + version); return unpackedDir; }  void setLogger(Logger logger); MavenResolvedArtifact resolveArtifact(String artifact); MavenResolvedArtifact[] resolveArtifacts(String artifact); MavenResolvedArtifact resolveRoboVMDistArtifact(String version); File resolveAndUnpackRoboVMDistArtifact(String version); File unpack(File archive, File targetDirectory); File unpackInPlace(File jarFile);  }
@Test public void testResolveAndUnpackRoboVMDistArtifact() throws Exception { RoboVMResolver resolver = new RoboVMResolver(); File dir = resolver.resolveAndUnpackRoboVMDistArtifact("2.3.3"); assertEquals(distAlpha2Dir, dir); assertEquals(1508519672L, new File(dir, "lib/robovm-rt.jar").lastModified() / 1000L); }