Liferay 6.2-ce-ga5

com.liferay.portal.tools
Class PluginsEnvironmentBuilder

java.lang.Object
  extended by com.liferay.portal.tools.PluginsEnvironmentBuilder

public class PluginsEnvironmentBuilder
extends Object


Constructor Summary
PluginsEnvironmentBuilder(File dir)
           
 
Method Summary
protected  void addClasspathEntry(StringBundler sb, String jar)
           
protected  void addClasspathEntry(StringBundler sb, String jar, Map<String,String> attributes)
           
protected  void addIvyCacheJar(StringBundler sb, String ivyDirName, String dependencyName, String version)
           
protected  void addIvyCacheJars(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)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginsEnvironmentBuilder

public PluginsEnvironmentBuilder(File dir)
                          throws Exception
Throws:
Exception
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

addClasspathEntry

protected void addClasspathEntry(StringBundler sb,
                                 String jar)

addClasspathEntry

protected void addClasspathEntry(StringBundler sb,
                                 String jar,
                                 Map<String,String> attributes)

addIvyCacheJar

protected void addIvyCacheJar(StringBundler sb,
                              String ivyDirName,
                              String dependencyName,
                              String version)
                       throws Exception
Throws:
Exception

addIvyCacheJars

protected void addIvyCacheJars(StringBundler sb,
                               String content,
                               String ivyDirName)
                        throws Exception
Throws:
Exception

getCommonJars

protected List<String> getCommonJars()

getImportSharedJars

protected List<String> getImportSharedJars(File projectDir)
                                    throws Exception
Throws:
Exception

getPortalDependencyJars

protected List<String> getPortalDependencyJars(Properties properties)

getRequiredDeploymentContextsJars

protected List<String> getRequiredDeploymentContextsJars(File libDir,
                                                         Properties properties)
                                                  throws Exception
Throws:
Exception

setupJarProject

protected void setupJarProject(String dirName,
                               String fileName,
                               List<String> dependencyJars,
                               boolean sharedProject)
                        throws Exception
Throws:
Exception

setupWarProject

protected void setupWarProject(String dirName,
                               String fileName)
                        throws Exception
Throws:
Exception

writeClasspathFile

protected void writeClasspathFile(File libDir,
                                  List<String> dependencyJars,
                                  String projectDirName,
                                  String projectName,
                                  boolean javaProject)
                           throws Exception
Throws:
Exception

writeEclipseFiles

protected void writeEclipseFiles(File libDir,
                                 File projectDir,
                                 List<String> dependencyJars)
                          throws Exception
Throws:
Exception

writeProjectFile

protected void writeProjectFile(String projectDirName,
                                String projectName,
                                boolean javaProject)
                         throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5