< prev index next >
test/lib/jdk/test/lib/cds/CDSOptions.java
Print this page
@@ -31,10 +31,13 @@
public String archiveName;
public ArrayList<String> prefix = new ArrayList<String>();
public ArrayList<String> suffix = new ArrayList<String>();
public boolean useSystemArchive = false;
+ // classes to be archived
+ public String[] classList;
+
// Indicate whether to append "-version" when using CDS Archive.
// Most of tests will use '-version'
public boolean useVersion = true;
@@ -72,6 +75,18 @@
public CDSOptions setUseSystemArchive(boolean use) {
this.useSystemArchive = use;
return this;
}
+
+ public CDSOptions setClassList(String[] list) {
+ this.classList = list;
+ return this;
+ }
+ public CDSOptions setClassList(ArrayList<String> list) {
+ String array[] = new String[list.size()];
+ list.toArray(array);
+ this.classList = array;
+ return this;
+ }
+
}
< prev index next >