publish.setPubrevision("1.2");
publish.setResolver("1");
File art = new File("build/test/publish/resolve-simple-1.2.jar");
FileUtil.copy(new File("test/repositories/1/org1/mod1.1/jars/mod1.1-1.0.jar"), art, null);
Echo echo = new Echo();
echo.setProject(project);
echo.setMessage("new version");
echo.setFile(art);
echo.execute();
File dest = new File(
"test/repositories/1/apache/resolve-simple/jars/resolve-simple-1.2.jar");
FileUtil.copy(new File("test/repositories/1/org1/mod1.1/jars/mod1.1-1.0.jar"), dest, null);
echo = new Echo();
echo.setProject(project);
echo.setMessage("old version");
echo.setFile(dest);
echo.execute();
publish.setOverwrite(true);
publish.execute();
assertTrue(dest.exists());
BufferedReader reader = new BufferedReader(new FileReader(dest));