All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core.InstallOptions Maven / Gradle / Ivy

The newest version!
/*
 * RioInstallOptions.java criado em 05/01/2014
 * 
 * Propriedade de Objectos Fábrica de Software LTDA.
 * Reprodução parcial ou total proibida.
 */
package br.com.objectos.rio.core;

import br.com.objectos.rio.HttpServer;

import br.com.objectos.way.core.io.Directory;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

/**
 * @author [email protected] (Marcio Endo)
 */
@Parameters
class InstallOptions {

  @Parameter(names = { "--prepare" })
  boolean prepare = false;

  @Parameter(names = { "--local" })
  boolean local = false;

  @Parameter(names = { "--workstations" })
  boolean workstations = false;

  @Parameter(names = { "--cleanup" })
  boolean cleanup = false;

  @Parameter(names = { "--server" })
  String server = "rio.objectos.com.br";

  @Parameter(names = { "--target" })
  String target = "/";

  public HttpServer fileServer() {
    return HttpServer.at(server);
  }

  public Directory targetDir() {
    return Directory.at(target);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy