Class Recorder
java.lang.Object
ee.jakarta.tck.ws.rs.signaturetest.Recorder
- Direct Known Subclasses:
ApiCheckRecorder
,SigTestRecorder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected Properties
protected String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Record the signatures for each package listed in theTS_HOME/bin/sig-test.map
file.protected abstract String[]
createCommandLine
(String version, String classpath, String outputFileName, String packageName) Create a array of arguments appropriate for use with different signature recording frameworks.protected abstract void
Perform whatever action in necessary to do the actual recording of the signatures.protected abstract void
writePackageListFile
(String basePackageName, String signatureFile, String packageListFile) Write, to a separate file, all of the packages that were recorded.
-
Field Details
-
signatureMap
-
packageListFile
-
classpath
-
signatureRepositoryDir
-
signatureMapFile
-
-
Constructor Details
-
Recorder
-
-
Method Details
-
batchRecord
public void batchRecord()Record the signatures for each package listed in the
TS_HOME/bin/sig-test.map
file. -
writePackageListFile
protected abstract void writePackageListFile(String basePackageName, String signatureFile, String packageListFile) throws Exception Write, to a separate file, all of the packages that were recorded. How this is accomplised will be dependent on the framework.- Parameters:
basePackageName
- the base packagesignatureFile
- the file in which the signatures were recorded topackageListFile
- the name of the package list file (which may or may not exist)- Throws:
Exception
- if an error occurs writing the file
-
createCommandLine
protected abstract String[] createCommandLine(String version, String classpath, String outputFileName, String packageName) Create a array of arguments appropriate for use with different signature recording frameworks.- Parameters:
version
- The version of the APIclasspath
- the classpath containing classes that will be recordedoutputFileName
- the file in which to write the recorded signatures topackageName
- the base package name of the signatures that will be recorded
-
doRecord
Perform whatever action in necessary to do the actual recording of the signatures.- Parameters:
commandLine
- the options to invoke the recording facility- Throws:
Exception
- if an error occurs during the record process
-