Example #1
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   reporter.setTrace(true);
   Config config = new Config();
   fnx = new FakeNexus(config, remote);
   fnx.start();
   IO.delete(remote);
   IO.delete(local);
   IO.copy(IO.getFile("testresources/mavenrepo"), remote);
   remote.mkdirs();
   local.mkdirs();
   repo =
       new MavenRemoteRepository(local, new HttpClient(), fnx.getBaseURI() + "/repo/", reporter);
   storage =
       new MavenRepository(
           local, "fnexus", this.repo, null, null, new ReporterAdapter(System.out), null);
 }
Example #2
0
 public SetLocation warning(String s, Object... args) {
   return reporter.warning(s, args);
 }
Example #3
0
 public void progress(float progress, String s, Object... args) {
   reporter.progress(progress, s, args);
 }
Example #4
0
 public List<String> getWarnings() {
   return reporter.getWarnings();
 }
Example #5
0
 public List<String> getErrors() {
   return reporter.getErrors();
 }
Example #6
0
 public SetLocation error(String s, Object... args) {
   return reporter.error(s, args);
 }
Example #7
0
 public SetLocation exception(Throwable t, String format, Object... args) {
   return reporter.exception(t, format, args);
 }
Example #8
0
 public boolean isOk() {
   return reporter.isOk();
 }
Example #9
0
 public Location getLocation(String msg) {
   return reporter.getLocation(msg);
 }
Example #10
0
 {
   ((ReporterAdapter) reporter).setTrace(true);
 }