public final class SonarProjectBuilder extends Object
Modifier and Type | Method and Description |
---|---|
protected static void |
checkExistenceOfDirectories(String projectKey,
File baseDir,
String[] sourceDirs) |
protected static void |
checkMandatoryProperties(Properties props,
String[] mandatoryProps) |
protected static void |
checkUnicityOfChildKey(org.sonar.api.batch.bootstrap.ProjectDefinition childProject,
org.sonar.api.batch.bootstrap.ProjectDefinition parentProject) |
protected static void |
cleanAggregatorProjectProperties(org.sonar.api.batch.bootstrap.ProjectDefinition project) |
protected static void |
cleanAndCheckModuleProperties(org.sonar.api.batch.bootstrap.ProjectDefinition project) |
protected static void |
cleanAndCheckProjectDefinitions(org.sonar.api.batch.bootstrap.ProjectDefinition project) |
static SonarProjectBuilder |
create(Properties properties) |
protected static Properties |
extractModuleProperties(String module,
Properties properties) |
org.sonar.api.batch.bootstrap.ProjectDefinition |
generateProjectDefinition() |
protected static File |
getFileFromPath(String path,
File baseDir)
Returns the file denoted by the given path, may this path be relative to "baseDir" or absolute.
|
protected static File[] |
getLibraries(File baseDir,
String pattern)
Returns files matching specified pattern.
|
protected File |
initModuleWorkDir(Properties properties) |
protected File |
initRootProjectWorkDir(File baseDir) |
protected void |
loadPropsFile(org.sonar.api.batch.bootstrap.ProjectDefinition parentProject,
Properties moduleProps,
String moduleId) |
protected static void |
mergeParentProperties(Properties childProps,
Properties parentProps) |
protected static void |
prefixProjectKeyWithParentKey(Properties childProps,
String parentKey) |
protected static void |
replaceDeprecatedProperties(Properties props)
Replaces the deprecated properties by the new ones, and logs a message to warn the users.
|
protected static void |
setProjectKeyAndNameIfNotDefined(Properties childProps,
String moduleId) |
protected static Properties |
toProperties(File propertyFile) |
public static SonarProjectBuilder create(Properties properties)
public org.sonar.api.batch.bootstrap.ProjectDefinition generateProjectDefinition()
protected File initModuleWorkDir(Properties properties)
protected void loadPropsFile(org.sonar.api.batch.bootstrap.ProjectDefinition parentProject, Properties moduleProps, String moduleId)
protected static Properties toProperties(File propertyFile)
protected static void setProjectKeyAndNameIfNotDefined(Properties childProps, String moduleId)
protected static void checkUnicityOfChildKey(org.sonar.api.batch.bootstrap.ProjectDefinition childProject, org.sonar.api.batch.bootstrap.ProjectDefinition parentProject)
protected static void prefixProjectKeyWithParentKey(Properties childProps, String parentKey)
protected static void checkMandatoryProperties(Properties props, String[] mandatoryProps)
protected static void cleanAndCheckProjectDefinitions(org.sonar.api.batch.bootstrap.ProjectDefinition project)
protected static void cleanAndCheckModuleProperties(org.sonar.api.batch.bootstrap.ProjectDefinition project)
protected static void cleanAggregatorProjectProperties(org.sonar.api.batch.bootstrap.ProjectDefinition project)
protected static void replaceDeprecatedProperties(Properties props)
protected static void mergeParentProperties(Properties childProps, Properties parentProps)
protected static Properties extractModuleProperties(String module, Properties properties)
protected static void checkExistenceOfDirectories(String projectKey, File baseDir, String[] sourceDirs)
protected static File[] getLibraries(File baseDir, String pattern)
Copyright © 2011–2015 SonarSource. All rights reserved.