Package br.com.objectos.way.base.io

Examples of br.com.objectos.way.base.io.Directory


  private File file;

  @BeforeClass
  public void setUp() {
    RioDirsUserSettings user = dirs.userSettings();
    Directory userDir = user.userHome();
    file = userDir.fileAt(".gitconfig");

    etcs.write(FakeUsers.USER_A);
  }
View Full Code Here


  private File file0;

  @BeforeClass
  public void setUp() {
    RioDirsUserSettings user = dirs.userSettings();
    Directory userDir = user.userHome();
    file0 = userDir.fileAt("kdo/projetos/.metadata/.plugins/" +
        "org.eclipse.core.runtime/.settings/org.testng.eclipse.prefs");

    etcs.write(FakeJdbcs.JDBC_A);
  }
View Full Code Here

  private File file;

  @BeforeClass
  public void setUp() {
    RioDirsUserSettings user = dirs.userSettings();
    Directory maven = user.maven();
    file = maven.fileAt("settings.xml");

    etcs.write(FakeJdbcs.JDBC_A);
  }
View Full Code Here

  private Etcs etcs;

  @BeforeClass
  public void setUp() {
    RioDirsUserSettings user = dirs.userSettings();
    Directory core = user.core();
    core.deleteContents();
  }
View Full Code Here

    kdo = userHome.dirAt("kdo");
    eclipseInstall = kdo.dirAt("eclipse");
    eclipseUserCoreRuntime = userHome
        .dirAt("kdo/projetos/.metadata/.plugins/org.eclipse.core.runtime/.settings");

    Directory userVar = dirs.userVar();
    kdoVar = userVar.dirAt("kdo");
    eclipseVar = kdoVar.dirAt("eclipse");

    gnomeApplications = userHome.dirAt(".local/share/applications");
    mavenSettings = userHome.dirAt(".m2");
  }
View Full Code Here

    info("git");
    infoAction("Applying objectos settings to your .gitconfig file.");

    User user = etcs().read(User.class);
    Map<String, User> ctx = ImmutableMap.of("user", user);
    Directory userHome = dirs().userHome();

    resourcesAt("/kdo/dots/git")
        .add(".gitconfig")
        .evalWith(ctx)
        .copyTo(userHome);
View Full Code Here

    bind(RioDirs.class).toInstance(dirs);

    UserSettings userSettings = new UserSettings(dirs);
    bind(UserSettings.class).toInstance(userSettings);

    Directory core = userSettings.core();

    etc(Dev.class).atDir(core).loadWith(DevLoader.INSTANCE);
    etc(Devs.class).atDir(core).loadWith(DevsLoader.INSTANCE);
    etc(Jdbc.class).atDir(core).loadWith(JdbcLoader.INSTANCE);
    etc(GDrive.class).atDir(core).loadWith(GDriveLoader.INSTANCE);
View Full Code Here

    infoAction("Applying objectos settings to your ~/.m2/settings.xml file.");

    Jdbc jdbc = etcs().read(Jdbc.class);
    GDrive gdrive = etcs().read(GDrive.class);
    Map<String, Object> ctx = ImmutableMap.<String, Object> of("jdbc", jdbc, "gdrive", gdrive);
    Directory m2 = dirs().mavenSettings();

    resourcesAt("/kdo/dots/maven")
        .add("settings.xml")
        .evalWith(ctx)
        .copyTo(m2);
View Full Code Here

  protected void execute0(KdoEclipseInstallOptions options) {
    DateTime dt = new DateTime();
    String suffix = dt.toString("yyyyMMdd-HHmm");
    String name = String.format("eclipse-%s.tar.bz2", suffix);

    Directory kdo = dirs.kdo();
    File file = kdo.fileAt(name);

    Tar.changeTo(kdo)
        .add("eclipse")
        .bzip2()
        .toFile(file);
View Full Code Here

    info("eclipse");
    infoAction("Applying objectos settings to your Eclipse workspace.");

    Jdbc jdbc = etcs().read(Jdbc.class);
    Map<String, Object> ctx = ImmutableMap.<String, Object> of("jdbc", jdbc);
    Directory dir = dirs().eclipseUserCoreRuntime();

    resourcesAt("/kdo/dots/eclipse")
        .addFromListAt("/kdo/dots/eclipse.list")
        .evalWith(ctx)
        .only("org.testng.eclipse.prefs")
View Full Code Here

TOP

Related Classes of br.com.objectos.way.base.io.Directory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.