java.lang.Object
com.arranger.jarl.script.jarlsp.JarlSPCompiler
- All Implemented Interfaces:
- com.arranger.jarl.script.gsp.IGSPCompiler
- public class JarlSPCompiler
- extends java.lang.Object
- implements com.arranger.jarl.script.gsp.IGSPCompiler
JarlSPCompiler created on Mar 5, 2003
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_SEPARATOR
protected static final char PATH_SEPARATOR
m_gsp
protected com.arranger.jarl.script.gsp.GSP m_gsp
m_javaCompiler
protected java.lang.String m_javaCompiler
m_sourceRoot
protected java.lang.String m_sourceRoot
m_javaOutput
protected java.lang.String m_javaOutput
m_classOutput
protected java.lang.String m_classOutput
m_classPath
protected java.lang.String m_classPath
JarlSPCompiler
public JarlSPCompiler()
getJavaCompiler
public java.lang.String getJavaCompiler()
setJavaCompiler
public void setJavaCompiler(java.lang.String javaCompiler)
getSourceRoot
public java.lang.String getSourceRoot()
setSourceRoot
public void setSourceRoot(java.lang.String sourceRoot)
getJavaOutput
public java.lang.String getJavaOutput()
setJavaOutput
public void setJavaOutput(java.lang.String javaOutput)
getClassOutput
public java.lang.String getClassOutput()
setClassOutput
public void setClassOutput(java.lang.String classOutput)
getClassPath
public java.lang.String getClassPath()
setClassPath
public void setClassPath(java.lang.String classPath)
parse
public java.lang.String parse(java.io.File ispFile,
com.arranger.jarl.base.IContext context)
throws com.arranger.jarl.script.gsp.GSPException,
java.io.IOException
- Parses a specific nbsp ispFile.
compile
public void compile(java.io.File jarlspFile)
throws java.lang.Exception
- Same as
compile(java.io.File) 55 but a list of files
execute
public java.lang.String execute(java.lang.String ispJavaLocation,
com.arranger.jarl.base.IContext context)
throws java.lang.Exception
- Executes the files that are previously compiled
open
public java.io.Reader open(java.lang.String file)
throws com.arranger.jarl.script.gsp.GSPException
- Gets the inuput stream to the specified file.
- Specified by:
open in interface com.arranger.jarl.script.gsp.IGSPCompiler
getRelativePath
public static java.lang.String getRelativePath(java.io.File file,
java.lang.String root)
throws java.io.IOException
- Gets 'foo/bar/myNbsp' for '/usr/local/ui/foo/bar/myNbsp.nbsp'.
getClassname
public static java.lang.String getClassname(java.lang.String path)
- Gets fully qualified class name for 'foo/bar/myNbsp'.
getJavaFile
public static java.io.File getJavaFile(java.lang.String path,
java.lang.String basePath)
throws java.io.IOException
- Gets output file for 'foo/bar/myNbsp'.
getXmlFile
public static java.io.File getXmlFile(java.lang.String path,
java.lang.String basePath)
throws java.io.IOException
getFile
public static java.io.File getFile(java.lang.String path,
java.lang.String ext,
java.lang.String basePath)
throws java.io.IOException