JavaTest harness reports contain relative and fixed links to files that break when the test reports are moved. To prevent this, the JavaTest harness provides an EditLinks
command-line utility in the main JavaTest harness jar file,
javatest.jar
, for you to use when moving JavaTest harness reports.
The EditLinks
utility checks all files with names ending in .html
for HTML links beginning with file names you specified in the EditLinks
command. These links are rewritten using the corresponding replacement name from the EditLinks
command and are copied to the new location. EditLinks
copies all other files to the new location without change.
Example:
java -classpath
[jt_dir/lib/
] javatest.jar com.sun.javatest.EditLinks
OPTIONS file...
-e
oldPrefix newPrefix
-e
options
can be given. When editing a file, the options are checked in the order
they are given.-e /work/ /java/jck-dev/scratch/12Jun00/jck-lab3/
<a href="/work/api/java_lang/results.jtr">/work/api/java_lang/results.jtr</a>
<a href="/work/api/java_lang/results.jtr">/work/api/java_lang/results.jtr</a>
<a href="/java/jck-dev/scratch/12Jun00/jck-lab3/api/java_lang/results.jtr">/work/api/java_lang/results.jtr</a>
-ignore
file
-ignore
may
be given.
For example, -ignore SCCS
' will cause any directories named SCCS to be ignored.
-o
file
Code | Description |
---|---|
0 | The copy was successful. |
1 | There was a problem with the command line arguments. |
2 | There was a problem with the command line arguments. |
3 | An error occurred while performing the copy. |
In the following example, test12_dir.wd and myworkdir.wd represent file names that might exist on your system. Win32 users must also replace the \ file separators with / to run these examples.
java -cp
[jt_dir/lib/
] javatest.jar com.sun.javatest.EditLinks -e /work/ /java/jck-dev/scratch/12Jun00/jck-lab3/ -o test12_dir.wd
myworkdir.wd