Timewindow home
|
| Revision history |
| User guide |
| Installation guide |
| Time-limiting
notes |
| Directives file |
| Buildtool integration |
| License and download |
| Purchase |
| Faqs/Known issues |
| Email |
|
|
Timewindow
will provide an exit code when the application terminates
after being launched from the command line. This allows it to be
integrated into a build process using a tool such as ANT.
|
|
|
|
Using Timewindow with ANT
|
|
|
Timewindow may be launched from ANT by using the 'java' task just as it
would normally be used from a command line. Note that a directives file
needs to be specified when launching from the command line without a
GUI.
Building with a directives file
The following sample build file shows an example of a time-limiting
task where the directives file which is specified, is available on the
system. It is assumed that the 'basedir' attribute for the task points
to the directory where the evaluation edition of Timewindow rev 1.0 is
installed. The directives file is assumed to be present in this same
directory.
|
|
|
|
|
Building with the api |
|
|
For rev 1.3 and later there are two methods in the
'com.leesw.Timewindow.Timewindow' class named 'timelimit' which may be
called from a java application to start the time-limiting process. The
first one is:
public static boolean timelimit(String logfile,String directiveFile)
A code fragment to call this method is given below.
|
|
|
|
|
The second api method to perform an obfuscation is:
public static boolean timelimit(String logfile,String[] directivesArray)
A code fragment to call this method is given below.
|
|
|
|
|
|
|
|
|
|
|