public class WarProcessor
extends java.lang.Object
| Constructor and Description |
|---|
WarProcessor(java.io.File warFile)
Creates a new WAR processor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
analyze(DependencyAnalyzer analyzer)
Analyues the WAR file with the given
DependencyAnalyzer. |
void |
close()
Closes the WAR file, disposes of temporary files.
|
java.util.Collection<java.lang.String> |
getWarClasspath()
Returns the WAR classpath.
|
java.io.File |
getWARFile()
Returns the WAR file this instance operates on.
|
static boolean |
isWARFile(java.io.File warFile)
Checks whether the given file is a WAR file.
|
public WarProcessor(java.io.File warFile)
throws java.io.IOException
warFile - the WAR filejava.io.IOException - if an I/O error occurspublic void analyze(DependencyAnalyzer analyzer) throws java.io.IOException
DependencyAnalyzer.analyzer - the dependency analyzerjava.io.IOException - if an I/O error occurspublic java.io.File getWARFile()
public java.util.Collection<java.lang.String> getWarClasspath()
public void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurspublic static boolean isWARFile(java.io.File warFile)
throws java.io.IOException
warFile - the file to inspectjava.io.IOException - if an I/O error occursCopyright 2009-2010 Jeremias M?rki. All Rights Reserved.