/** *EveryJDKhasareleasefileinitsroot. *@returnAhandlertothereleasefile.
*/ publicstatic File getReleaseFile() throws Exception {
String jdkPath = getJDKRoot();
File releaseFile = new File(jdkPath,"release"); if ( ! releaseFile.canRead() ) { thrownew Exception("Release file is not readable, or it is absent: " +
releaseFile.getCanonicalPath());
} return releaseFile;
}
/** *ReturnspathtotheJDKundertest. *Thispathisobtainedthroughthetest.jdkproperty,usuallysetbyJTREG.
*/ publicstatic String getJDKRoot() {
String jdkPath = System.getProperty("test.jdk"); if (jdkPath == null) { thrownew RuntimeException("System property 'test.jdk' not set. This property is normally set by jtreg. "
+ "When running test separately, set this property using '-Dtest.jdk=/path/to/jdk'.");
} return jdkPath;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.