com.infoengine.SAK
Class Taskc

java.lang.Object
  extended bycom.infoengine.SAK.Taskc

public class Taskc
extends Object

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

tc

private TaskCompiler tc

log

private com.infoengine.log.LogWriter log

javaHome

private String javaHome

errors

private boolean errors
Constructor Detail

Taskc

public Taskc()
Method Detail

compile

public boolean compile(String[] args)
Parameters:
args - Command line arguments.
Returns:

compileDirectory

private void compileDirectory(String taskDir)
Recurse through the specified directory and compile all .xml task files.

Parameters:
taskDir - file system directory to compile.

display

private void display(Enumeration a)
Log elements of an enumeration.

Parameters:
a - An enumeration of strings to log.

display

private void display(Vector a)
Log elements of a Vector.

Parameters:
a - A Vector of strings to log.

getClassDir

private static void getClassDir(Vector classDir)

getClassLib

private static void getClassLib(Vector classLib)

expand

private static Enumeration expand(Vector classDir,
                                  Vector classLib)

makeCommand

private static String makeCommand(String javaCmd,
                                  String javaOptions,
                                  Enumeration preCommand,
                                  String task,
                                  Enumeration parameters)

makeClassPath

private static String makeClassPath(Enumeration classPathElements)

normalizePath

private static String normalizePath(String path)
Parameters:
path -
Returns:

printUsage

private void printUsage()

main

public static void main(String[] args)
Parameters:
args -