public class WarOfficeFloorDecorator extends Object implements OfficeFloorDecorator
OfficeFloorDecorator
for a WAR.Modifier and Type | Field and Description |
---|---|
static String |
META_INF
META-INF directory name. |
static String |
PLUGIN_WAR_ARTIFACT_ID
Maven Artifact Id for the
WarOfficeFloorDecorator . |
static String |
PLUGIN_WAR_GROUP_ID
Maven Group Id for the
WarOfficeFloorDecorator . |
static String |
WEB_INF
WEB-INF directory name. |
static String |
WEB_INF_CLASSES
Directory within the Web Archive containing classes for the class path.
|
static String |
WEB_INF_LIB
Directory within the Web Archive containing additional archives for the
class path.
|
static String |
WEB_INF_WEB_XML
web.xml location within the Web Archive. |
static String |
WEB_PUBLIC
Directory to contain the public web content.
|
Constructor and Description |
---|
WarOfficeFloorDecorator()
Default constructor necessary to act as
OfficeFloorDecorator . |
Modifier and Type | Method and Description |
---|---|
void |
decorate(OfficeFloorDecoratorContext context)
Decorates the
OfficeFloor . |
static File |
generateJarMinusMetaAndWebInf(File warOrDirectory)
|
public static final String PLUGIN_WAR_GROUP_ID
WarOfficeFloorDecorator
.public static final String PLUGIN_WAR_ARTIFACT_ID
WarOfficeFloorDecorator
.public static final String META_INF
META-INF
directory name.public static final String WEB_INF
WEB-INF
directory name.public static final String WEB_INF_CLASSES
public static final String WEB_INF_LIB
public static final String WEB_INF_WEB_XML
web.xml
location within the Web Archive.public static final String WEB_PUBLIC
public WarOfficeFloorDecorator()
OfficeFloorDecorator
.public static File generateJarMinusMetaAndWebInf(File warOrDirectory) throws Exception
Generates a JAR File
decorated ready for use from the input JAR
or directory File
.
The META-INF
and WEB-INF
contents are not
included in the JAR. The reason is that this is used by Maven goals that
have already included the content on the class path. The Maven goals use
this as they wish to obtain generated web content from the Maven package
directory but not re-include the code.
warOrDirectory
- WAR or directory.META-INF
and
WEB-INF
directories.Exception
- If fails to generate the JAR.public void decorate(OfficeFloorDecoratorContext context) throws Exception
OfficeFloorDecorator
OfficeFloor
.decorate
in interface OfficeFloorDecorator
context
- OfficeFloorDecoratorContext
.Exception
- If fails to decorate.Copyright © 2005–2016. All rights reserved.