|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimple.page.Workspace
public class Workspace
The Workspace
object is used to specify the source and
build context for the JSP translation and compilation process. This
allows the source files, that is, the JSP sources, and build files
to be acquired by the JSP engine. The build files, are the Java or
Groovy sources, and the class files compiled. Typically these will
be located within a WEB-INF directory in the source root, however,
the workspace can be configured to use any directory.
Constructor Summary | |
---|---|
Workspace(Context source)
Constructor for the Workspace object. |
|
Workspace(Context source,
java.lang.String name)
Constructor for the Workspace object. |
|
Workspace(Context source,
java.lang.String name,
java.io.File base)
Constructor for the Workspace object. |
|
Workspace(Context source,
java.lang.String name,
java.lang.String base)
Constructor for the Workspace object. |
Method Summary | |
---|---|
java.io.File |
getBuildFile(java.lang.String target)
This acquires a file for the specified build location. |
java.io.File |
getBuildPath()
This provides the root path for the build directory. |
java.lang.String |
getDirectory(java.lang.String target)
This will acquire the directory as acquired from the JSP source context. |
java.lang.String |
getName()
This provides the name of this JSP project workspace. |
java.io.File |
getSourceFile(java.lang.String target)
This acquires a file for the specified JSP source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Workspace(Context source) throws java.io.IOException
Workspace
object. This uses a
JSP context root to create a default configuration. With this
the translated sources and compiled classes are written to the
WEB-INF directory within the context root directory.
source
- specifies the location for the JSP sources
java.io.IOException
public Workspace(Context source, java.lang.String name) throws java.io.IOException
Workspace
object. This uses a
JSP context root to create a default configuration. With this
the translated sources and compiled classes are written to the
WEB-INF directory within the context root directory.
source
- specifies the location for the JSP sourcesname
- this is the name of this JSP project workspace
java.io.IOException
public Workspace(Context source, java.lang.String name, java.lang.String base) throws java.io.IOException
Workspace
object. This uses a
JSP context root to create a default configuration. With this
constructor the sources are acquired from the provided context
and the build files are written, within the context, to the
specified directory. This is used to modify the default WEB-INF.
source
- this is the location JSP sources are taken fromname
- this is the name of this JSP project workspacebase
- this is the context to write the build files to
java.io.IOException
public Workspace(Context source, java.lang.String name, java.io.File base) throws java.io.IOException
Workspace
object. This uses a
JSP context root to create a default configuration. With this
constructor the sources are acquired from the provided context
and the build files are written to the directory specified.
This is used to store the build files out side the JSP context.
source
- this is the location JSP sources are taken fromname
- this is the name of this JSP project workspacebase
- this is the context to write the build files to
java.io.IOException
Method Detail |
---|
public java.lang.String getDirectory(java.lang.String target)
target
- this is the location of the JSP source file
public java.io.File getSourceFile(java.lang.String target)
target
- this is an absolute URI path to the source
public java.io.File getBuildFile(java.lang.String target)
target
- this is an absolute URI path to the build file
public java.io.File getBuildPath()
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |