net.jangaroo.jooc.mvnplugin.sencha.configbuilder.SenchaWorkspaceConfigBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jangaroo-maven-plugin Show documentation
Show all versions of jangaroo-maven-plugin Show documentation
This plugin compiles Jangaroo sources to JavaScript.
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);
}
}