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

net.jangaroo.jooc.mvnplugin.sencha.configbuilder.SenchaWorkspaceConfigBuilder Maven / Gradle / Ivy

There is a newer version: 4.1.17
Show newest version
package net.jangaroo.jooc.mvnplugin.sencha.configbuilder;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * Builder for Sencha workspace.json.
 */
public class SenchaWorkspaceConfigBuilder extends SenchaConfigBuilder {

  private static final String APPS = "apps";
  private static final String PACKAGES = "packages";
  private static final String DIR = "dir";
  private static final String EXTRACT = "extract";

  public SenchaWorkspaceConfigBuilder apps(List paths) {
    return nameValue(APPS, paths);
  }

  public SenchaWorkspaceConfigBuilder packagesDirs(List paths) {
    Map packages = new LinkedHashMap<>();
    packages.put(DIR, paths);
    return nameValue(PACKAGES, packages);
  }

  public SenchaWorkspaceConfigBuilder packagesExtract(String path) {
    Map packages = new LinkedHashMap<>();
    packages.put(EXTRACT, path);
    return nameValue(PACKAGES, packages);
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy