org.infoglue.deliver.portal.deploy
Class Deploy

java.lang.Object
  extended by org.infoglue.deliver.portal.deploy.Deploy

public class Deploy
extends java.lang.Object

Slightly modified version of jakarta-plutos deploy target. This utility requires that portletdefinitionmapping.xml and servletdefinitionmapping.xml are located somewhere in the classpath.


Nested Class Summary
static class Deploy.StreamWebAppDescriptorServiceImpl
           
 
Constructor Summary
Deploy()
           
 
Method Summary
static boolean deployArchive(java.lang.String webappsDir, java.lang.String warName, java.io.InputStream is, java.lang.String containerName)
          Deploy a portlet.
static void main(java.lang.String[] args)
           
static org.apache.pluto.om.portlet.PortletApplicationDefinition prepareArchive(java.io.File file, java.io.File tmp, java.lang.String appName)
          Prepare a portlet according to Pluto (switch web.xml)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Deploy

public Deploy()
Method Detail

deployArchive

public static boolean deployArchive(java.lang.String webappsDir,
                                    java.lang.String warName,
                                    java.io.InputStream is,
                                    java.lang.String containerName)
                             throws java.io.FileNotFoundException,
                                    java.io.IOException
Deploy a portlet. Creates a .war-file in webapps and waits until it is deployed by the servlet container (max 30 seconds).

Parameters:
webappsDir - webapps directory
warName - name of .war-file (portlet)
is - stream of .war-file
containerName - name of portlet container to be updated
Returns:
true if portlet was deployed
Throws:
java.io.FileNotFoundException - in case webapps directory not found
java.io.IOException

prepareArchive

public static org.apache.pluto.om.portlet.PortletApplicationDefinition prepareArchive(java.io.File file,
                                                                                      java.io.File tmp,
                                                                                      java.lang.String appName)
                                                                               throws java.io.IOException
Prepare a portlet according to Pluto (switch web.xml)

Parameters:
file - .war to prepare
tmp - the resulting updated .war
appName - name of application (context name)
Returns:
the portlet application definition (portlet.xml)
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)


Copyright © 2005 InfoGlue.org All Rights Reserved.