Search in sources :

Example 1 with FakeNexus

use of aQute.maven.provider.FakeNexus in project bnd by bndtools.

the class OSGiRepositoryTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    tmp = IO.getFile("generated/tmp/test/" + getName());
    cache = IO.getFile(tmp, "cache");
    remote = IO.getFile(tmp, "testdata");
    ws = IO.getFile(tmp, "ws");
    IO.delete(tmp);
    Config config = new Config();
    fnx = new FakeNexus(config, remote);
    fnx.start();
    remote.mkdirs();
    IO.copy(IO.getFile("testdata/minir5.xml"), IO.getFile(remote, "minir5.xml"));
    IO.copy(IO.getFile("testdata/bundles"), IO.getFile(remote, "bundles"));
}
Also used : Config(aQute.http.testservers.HttpTestServer.Config) FakeNexus(aQute.maven.provider.FakeNexus)

Example 2 with FakeNexus

use of aQute.maven.provider.FakeNexus in project bnd by bndtools.

the class MavenBndRepoTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    tmpName = "generated/tmp/test/" + getName();
    tmp = IO.getFile(tmpName);
    IO.delete(tmp);
    local = IO.getFile(tmp, "local");
    remote = IO.getFile(tmp, "remote");
    index = IO.getFile(tmp, "index");
    remote.mkdirs();
    local.mkdirs();
    IO.copy(IO.getFile("testresources/mavenrepo"), remote);
    IO.copy(IO.getFile("testresources/mavenrepo/index.maven"), index);
    Config config = new Config();
    fnx = new FakeNexus(config, remote);
    fnx.start();
}
Also used : Config(aQute.http.testservers.HttpTestServer.Config) FakeNexus(aQute.maven.provider.FakeNexus)

Example 3 with FakeNexus

use of aQute.maven.provider.FakeNexus in project bnd by bndtools.

the class WorkspaceTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    tmpName = "generated/tmp/test/" + getName();
    tmp = IO.getFile(tmpName);
    IO.delete(tmp);
    local = IO.getFile(tmp, "local");
    remote = IO.getFile(tmp, "remote");
    index = IO.getFile(tmp, "index");
    build = IO.getFile(tmp, "workspace/cnf/build.bnd");
    remote.mkdirs();
    local.mkdirs();
    IO.copy(IO.getFile("testresources/mavenrepo"), remote);
    IO.copy(IO.getFile("testresources/mavenrepo/index.maven"), index);
    Config config = new Config();
    fnx = new FakeNexus(config, remote);
    fnx.start();
}
Also used : Config(aQute.http.testservers.HttpTestServer.Config) FakeNexus(aQute.maven.provider.FakeNexus)

Aggregations

Config (aQute.http.testservers.HttpTestServer.Config)3 FakeNexus (aQute.maven.provider.FakeNexus)3