Modifier and Type | Class and Description |
---|---|
class |
Setup.Project |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
assetLoc
Asset loc is taken from project.yaml, falling back to mdw.yaml, and finally "assets"
|
protected java.lang.String |
configLoc |
protected static java.lang.String |
MDW_COMMON_PATH |
protected static java.lang.String |
META_DIR |
protected java.io.File |
projectDir |
protected java.lang.String |
sourceGroup |
protected java.lang.String |
templateDir |
protected static java.lang.String |
VERSIONS |
MAVEN_CENTRAL_URL, SONATYPE_URL
Modifier | Constructor and Description |
---|---|
protected |
Setup(java.io.File projectDir) |
Modifier and Type | Method and Description |
---|---|
void |
createAsset(java.lang.String assetPath,
byte[] content) |
void |
debug()
Override for extended debug info (always calling super.debug()).
|
protected void |
downloadTemplates(ProgressMonitor... monitors)
Downloads asset templates for codegen, etc.
|
java.util.Map<java.lang.String,java.util.List<java.io.File>> |
findAllAssets(java.lang.String ext) |
java.lang.String |
findMdwVersion(boolean snapshots)
Crawls to find the latest stable version.
|
java.io.File |
getAssetFile(java.lang.String assetPath) |
protected java.util.List<java.io.File> |
getAssetFiles(java.lang.String packageName) |
java.lang.String |
getAssetLoc() |
java.lang.String |
getAssetName(java.lang.String assetPath) |
AssetPath |
getAssetPath(java.io.File file) |
java.lang.String |
getAssetRelativePath(java.io.File file) |
java.io.File |
getAssetRoot() |
java.util.List<java.lang.String> |
getBaseAssetPackages() |
protected java.lang.String |
getBaseUrl() |
java.lang.String |
getConfigLoc() |
java.io.File |
getConfigRoot() |
java.lang.String |
getDatabaseDriver() |
java.lang.String |
getDatabasePassword() |
java.lang.String |
getDatabaseUrl() |
java.lang.String |
getDatabaseUser() |
java.util.List<Dependency> |
getDependencies()
Dependencies that need to be downloaded for this operation to run.
|
java.io.PrintStream |
getErr() |
java.lang.String |
getGitBranch() |
java.lang.String |
getGitPath(java.io.File file) |
java.lang.String |
getGitRemoteUrl() |
java.io.File |
getGitRoot() |
java.lang.String |
getGitUser() |
protected java.io.File |
getImplsDir() |
java.lang.String |
getJava() |
java.lang.String |
getMdwConfig() |
java.io.File |
getMdwHome() |
java.lang.String |
getMdwVersion()
Reads from project.yaml
|
java.io.PrintStream |
getOut() |
java.io.File |
getPackageDir(java.lang.String packageName) |
protected Packages |
getPackageDirs() |
java.io.File |
getPackageMeta(java.io.File packageDir) |
java.io.File |
getPackageMeta(java.lang.String packageName) |
java.lang.String |
getPackageName(java.lang.String assetPath) |
Setup.Project |
getProject() |
java.io.File |
getProjectDir() |
YamlProperties |
getProjectYaml() |
java.lang.String |
getRelativePath(java.io.File from,
java.io.File to)
Returns 'to' file or dir path relative to 'from' dir.
|
java.lang.String |
getReleasesUrl() |
java.lang.String |
getServicesUrl() |
java.lang.String |
getSnapshotsUrl() |
java.lang.String |
getSourceGroup() |
java.io.File |
getTempDir() |
protected java.io.File |
getTemplateDir() |
java.lang.String |
getTemplatesUrl() |
java.lang.Object |
getValue(java.lang.String name) |
protected java.util.Map<java.lang.String,java.util.Properties> |
getVersionProps(java.util.Map<java.lang.String,java.io.File> packageDirs) |
boolean |
gitExists() |
protected void |
initBaseAssetPackages()
Checks for any existing packages.
|
protected boolean |
isCommandLine() |
boolean |
isDebug() |
boolean |
isDependencies() |
boolean |
isNoProgress() |
boolean |
isSnapshots()
Reads from project.yaml
|
void |
mkPackage(java.lang.String name)
Creates a package if it doesn't exist.
|
protected boolean |
needsConfig() |
void |
setAssetLoc(java.lang.String assetLoc) |
void |
setBaseAssetPackages(java.util.List<java.lang.String> packages) |
void |
setConfigLoc(java.lang.String configLoc) |
void |
setDatabaseDriver(java.lang.String driver) |
void |
setDatabasePassword(java.lang.String password) |
void |
setDatabaseUrl(java.lang.String url) |
void |
setDatabaseUser(java.lang.String user) |
void |
setDebug(boolean debug) |
void |
setDependencies(boolean dependencies) |
void |
setErr(java.io.PrintStream err) |
void |
setGitBranch(java.lang.String branch) |
void |
setGitPassword(java.lang.String password) |
void |
setGitRemoteUrl(java.lang.String url) |
void |
setGitRoot(java.io.File gitRoot) |
void |
setGitUser(java.lang.String user) |
void |
setMdwVersion(java.lang.String version) |
void |
setNoProgress(boolean noProgress) |
void |
setOut(java.io.PrintStream out) |
void |
setReleasesUrl(java.lang.String url) |
void |
setServicesUrl(java.lang.String url) |
void |
setSnapshotsUrl(java.lang.String url) |
void |
setSourceGroup(java.lang.String sourceGroup) |
void |
setTemplateDir(java.lang.String templateDir) |
void |
status() |
protected void |
subst(java.io.File dir) |
static java.lang.String |
substitute(java.lang.String input,
java.util.Map<java.lang.String,java.lang.Object> values)
Simple substitution mechanism.
|
java.lang.String |
toCamel(java.lang.String hyphenated) |
protected void |
updateBuildFile() |
boolean |
validate()
Override for extended validation (always calling super.validate()).
|
protected static final java.lang.String META_DIR
protected static final java.lang.String VERSIONS
protected static final java.lang.String MDW_COMMON_PATH
protected java.io.File projectDir
protected java.lang.String sourceGroup
protected java.lang.String templateDir
protected java.lang.String configLoc
protected java.lang.String assetLoc
public java.util.List<Dependency> getDependencies() throws java.io.IOException
java.io.IOException
public boolean isDependencies()
public void setDependencies(boolean dependencies)
public java.io.File getProjectDir()
public boolean isDebug()
public void setDebug(boolean debug)
public boolean isNoProgress()
public void setNoProgress(boolean noProgress)
public java.lang.String getReleasesUrl()
public void setReleasesUrl(java.lang.String url)
public java.lang.String getServicesUrl()
public void setServicesUrl(java.lang.String url)
public java.util.List<java.lang.String> getBaseAssetPackages()
public void setBaseAssetPackages(java.util.List<java.lang.String> packages)
public java.lang.String getGitRemoteUrl()
public void setGitRemoteUrl(java.lang.String url)
public java.lang.String getGitBranch()
public void setGitBranch(java.lang.String branch)
public java.lang.String getGitUser()
public void setGitUser(java.lang.String user)
public void setGitPassword(java.lang.String password)
public java.lang.String getDatabaseUrl()
public void setDatabaseUrl(java.lang.String url)
public java.lang.String getDatabaseUser()
public void setDatabaseUser(java.lang.String user)
public java.lang.String getDatabasePassword()
public void setDatabasePassword(java.lang.String password)
public java.lang.String getDatabaseDriver()
public void setDatabaseDriver(java.lang.String driver)
public java.lang.String getSourceGroup()
public void setSourceGroup(java.lang.String sourceGroup)
public void setTemplateDir(java.lang.String templateDir)
public java.lang.String getSnapshotsUrl()
public void setSnapshotsUrl(java.lang.String url)
public YamlProperties getProjectYaml() throws java.io.IOException
java.io.IOException
public java.lang.String getMdwVersion() throws java.io.IOException
java.io.IOException
public void setMdwVersion(java.lang.String version)
public boolean isSnapshots() throws java.io.IOException
java.io.IOException
public java.lang.String getConfigLoc() throws java.io.IOException
java.io.IOException
public void setConfigLoc(java.lang.String configLoc)
public java.lang.String getAssetLoc() throws java.io.IOException
java.io.IOException
public void setAssetLoc(java.lang.String assetLoc)
public java.lang.String findMdwVersion(boolean snapshots) throws java.io.IOException
java.io.IOException
protected void initBaseAssetPackages() throws java.io.IOException
java.io.IOException
protected void subst(java.io.File dir) throws java.io.IOException
java.io.IOException
public java.lang.Object getValue(java.lang.String name)
public java.lang.String toCamel(java.lang.String hyphenated)
public java.io.File getConfigRoot()
public java.lang.String getRelativePath(java.io.File from, java.io.File to)
public java.lang.String getAssetRelativePath(java.io.File file) throws java.io.IOException
java.io.IOException
public AssetPath getAssetPath(java.io.File file) throws java.io.IOException
java.io.IOException
public java.lang.String getPackageName(java.lang.String assetPath)
public java.lang.String getAssetName(java.lang.String assetPath)
public java.io.File getAssetFile(java.lang.String assetPath) throws java.io.IOException
java.io.IOException
public java.io.File getAssetRoot() throws java.io.IOException
java.io.IOException
public java.io.File getGitRoot() throws java.io.IOException
java.io.IOException
public void setGitRoot(java.io.File gitRoot)
public java.lang.String getGitPath(java.io.File file) throws java.io.IOException
java.io.IOException
public boolean gitExists() throws java.io.IOException
java.io.IOException
public java.lang.String getMdwConfig()
public java.io.File getMdwHome() throws java.io.IOException
java.io.IOException
public java.lang.String getTemplatesUrl() throws java.io.IOException
java.io.IOException
public boolean validate() throws java.io.IOException
java.io.IOException
protected boolean needsConfig()
public void debug() throws java.io.IOException
java.io.IOException
public void status() throws java.io.IOException
java.io.IOException
public java.lang.String getJava()
public void mkPackage(java.lang.String name) throws java.io.IOException
java.io.IOException
public void createAsset(java.lang.String assetPath, byte[] content) throws java.io.IOException
java.io.IOException
protected java.io.File getTemplateDir() throws java.io.IOException
java.io.IOException
protected java.io.File getImplsDir() throws java.io.IOException
java.io.IOException
protected void downloadTemplates(ProgressMonitor... monitors) throws java.io.IOException
java.io.IOException
public java.io.File getTempDir() throws java.io.IOException
java.io.IOException
protected Packages getPackageDirs() throws java.io.IOException
java.io.IOException
public java.io.File getPackageDir(java.lang.String packageName) throws java.io.IOException
java.io.IOException
public java.io.File getPackageMeta(java.io.File packageDir)
public java.io.File getPackageMeta(java.lang.String packageName) throws java.io.IOException
java.io.IOException
public java.util.Map<java.lang.String,java.util.List<java.io.File>> findAllAssets(java.lang.String ext) throws java.io.IOException
java.io.IOException
protected java.util.List<java.io.File> getAssetFiles(java.lang.String packageName) throws java.io.IOException
java.io.IOException
protected java.lang.String getBaseUrl() throws java.net.MalformedURLException
java.net.MalformedURLException
protected void updateBuildFile() throws java.io.IOException
java.io.IOException
protected java.util.Map<java.lang.String,java.util.Properties> getVersionProps(java.util.Map<java.lang.String,java.io.File> packageDirs) throws java.io.IOException
java.io.IOException
public static java.lang.String substitute(java.lang.String input, java.util.Map<java.lang.String,java.lang.Object> values)
protected boolean isCommandLine()
public Setup.Project getProject()
Copyright © 2019 CenturyLink, Inc.