org.apache.pluto.util.assemble.war
Class WarAssembler
java.lang.Object
org.apache.pluto.util.assemble.WebXmlRewritingAssembler
org.apache.pluto.util.assemble.AbstractArchiveAssembler
org.apache.pluto.util.assemble.war.WarAssembler
- All Implemented Interfaces:
- Assembler
public class WarAssembler
- extends AbstractArchiveAssembler
- Since:
- Nov 8, 2004
- Version:
- 1.0
Constructor Summary |
WarAssembler()
Default no-arg constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WarAssembler
public WarAssembler()
- Default no-arg constructor.
assembleInternal
public void assembleInternal(AssemblerConfig config)
throws UtilityException,
IOException
- Description copied from class:
AbstractArchiveAssembler
- Assemble the source file to the destination file. The superclass is responsible for ensuring
correct and not-null values for the source and destination, and for temporary file handling
used during in-place assembly.
- Specified by:
assembleInternal
in class AbstractArchiveAssembler
- Parameters:
config
- the assembler configuration object
- Throws:
UtilityException
IOException
assembleWar
protected void assembleWar(File source,
File dest,
String dispatchServletClass)
throws IOException
- Reads the source JAR copying entries to the dest JAR. The web.xml and portlet.xml are cached
and after the entire archive is copied (minus the web.xml) a re-written web.xml is generated
and written to the destination JAR.
- Throws:
IOException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.