public class PluginsEnvironmentBuilder
extends Object
| Constructor and Description |
|---|
PluginsEnvironmentBuilder(File dir) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClasspathEntry(com.liferay.portal.kernel.util.StringBundler sb,
String jar) |
protected void |
addClasspathEntry(com.liferay.portal.kernel.util.StringBundler sb,
String jar,
Map<String,String> attributes) |
protected void |
addIvyCacheJar(com.liferay.portal.kernel.util.StringBundler sb,
String ivyDirName,
String dependencyName,
String version) |
protected void |
addIvyCacheJars(com.liferay.portal.kernel.util.StringBundler sb,
String content,
String ivyDirName) |
protected List<String> |
getCommonJars() |
protected List<String> |
getImportSharedJars(File projectDir) |
protected List<String> |
getPortalDependencyJars(Properties properties) |
protected List<String> |
getRequiredDeploymentContextsJars(File libDir,
Properties properties) |
protected boolean |
hasModulesGitIgnore(String dirName) |
static void |
main(String[] args) |
protected void |
setupJarProject(String dirName,
String fileName,
List<String> dependencyJars,
boolean sharedProject) |
protected void |
setupWarProject(String dirName,
String fileName) |
protected void |
writeClasspathFile(File libDir,
List<String> dependencyJars,
String projectDirName,
String projectName,
boolean javaProject) |
protected void |
writeEclipseFiles(File libDir,
File projectDir,
List<String> dependencyJars) |
protected void |
writeProjectFile(String projectDirName,
String projectName,
boolean javaProject) |
public PluginsEnvironmentBuilder(File dir)
throws Exception
Exceptionpublic static void main(String[] args)
throws Exception
Exceptionprotected void addClasspathEntry(com.liferay.portal.kernel.util.StringBundler sb,
String jar)
protected void addClasspathEntry(com.liferay.portal.kernel.util.StringBundler sb,
String jar,
Map<String,String> attributes)
protected void addIvyCacheJar(com.liferay.portal.kernel.util.StringBundler sb,
String ivyDirName,
String dependencyName,
String version)
throws Exception
Exceptionprotected void addIvyCacheJars(com.liferay.portal.kernel.util.StringBundler sb,
String content,
String ivyDirName)
throws Exception
Exceptionprotected List<String> getCommonJars()
protected List<String> getImportSharedJars(File projectDir)
throws Exception
Exceptionprotected List<String> getPortalDependencyJars(Properties properties)
protected List<String> getRequiredDeploymentContextsJars(File libDir,
Properties properties)
throws Exception
Exceptionprotected boolean hasModulesGitIgnore(String dirName)
protected void setupJarProject(String dirName,
String fileName,
List<String> dependencyJars,
boolean sharedProject)
throws Exception
Exceptionprotected void setupWarProject(String dirName,
String fileName)
throws Exception
Exceptionprotected void writeClasspathFile(File libDir,
List<String> dependencyJars,
String projectDirName,
String projectName,
boolean javaProject)
throws Exception
Exceptionprotected void writeEclipseFiles(File libDir,
File projectDir,
List<String> dependencyJars)
throws Exception
Exceptionprotected void writeProjectFile(String projectDirName,
String projectName,
boolean javaProject)
throws Exception
Exception