|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.SAK.Taskc
This class provoides a font end to the Info*Engine task compiler that can be used
to precompile Info*Engine tasks.
Parameters are:
[webAppHome] The home of Windchill installation (ex. z:\Windchill )
If this parameter is specified, the remaining parameters
are derived from this parameter. This parameter
is case sensitive to the task compiler.
[classDir] Explicit additional class path directories. These
directories are added to the classpath. Default
is "webAppHome"/codebase/WEB-INF/classes.
[classLib] Explicit additional class library directories.
All jars in these directories are added to the
classpath. Default
is "webAppHome"/codebase/WEB-INF/lib.
[taskRoot] Explicit root of the task source directory. If
specified, overrides the directory derived from
webAppHome. Default is
"webAppHome"/tasks.
[taskCodeBase] Explicit root of the compiled task destination directory.
If specified, overrides the directory derived from
webAppHome. Default is
"webAppHome"/tasks/codebase.
[logFileDir] Explicit log file directory.If specified, overrides
the directory derived from webAppHome. Logfile name is
Taskc.log.
Dependancies: Additional dependant jar files
"jdkHome"/lib/tools.jar ie.jar servlet.jar
Example command line calling sequence is:
set CLASSPATH=d:\jdk1.3.1\lib\tools.jar;v:\Windchill\codebase;v:\Windchill\codebase\WEB-INF\classes;
v:\Windchill\codebase\WEB-INF\lib\ie.jar;v:\Windchill\lib\servlet.jar
java com.infoengine.SAK.Taskc webAppHome=v:\Windchill
Field Summary | |
private boolean |
errors
|
private String |
javaHome
|
private com.infoengine.log.LogWriter |
log
|
private TaskCompiler |
tc
|
Constructor Summary | |
Taskc()
|
Method Summary | |
boolean |
compile(String[] args)
|
private void |
compileDirectory(String taskDir)
Recurse through the specified directory and compile all .xml task files. |
private void |
display(Enumeration a)
Log elements of an enumeration. |
private void |
display(Vector a)
Log elements of a Vector. |
private static Enumeration |
expand(Vector classDir,
Vector classLib)
|
private static void |
getClassDir(Vector classDir)
|
private static void |
getClassLib(Vector classLib)
|
static void |
main(String[] args)
|
private static String |
makeClassPath(Enumeration classPathElements)
|
private static String |
makeCommand(String javaCmd,
String javaOptions,
Enumeration preCommand,
String task,
Enumeration parameters)
|
private static String |
normalizePath(String path)
|
private void |
printUsage()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private TaskCompiler tc
private com.infoengine.log.LogWriter log
private String javaHome
private boolean errors
Constructor Detail |
public Taskc()
Method Detail |
public boolean compile(String[] args)
args
- Command line arguments.
private void compileDirectory(String taskDir)
taskDir
- file system directory to compile.private void display(Enumeration a)
a
- An enumeration of strings to log.private void display(Vector a)
a
- A Vector of strings to log.private static void getClassDir(Vector classDir)
private static void getClassLib(Vector classLib)
private static Enumeration expand(Vector classDir, Vector classLib)
private static String makeCommand(String javaCmd, String javaOptions, Enumeration preCommand, String task, Enumeration parameters)
private static String makeClassPath(Enumeration classPathElements)
private static String normalizePath(String path)
path
-
private void printUsage()
public static void main(String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |