Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ClassDump.java @ 12065:10c59b8021ec
8022655: ClassDump ignored jarStream setting
Reviewed-by: minqi, sla
author | kevinw |
---|---|
date | Mon, 19 Aug 2013 14:28:58 +0100 |
parents | e0379d5ba5d2 |
children | 7fe6ef09d242 |
comparison
equal
deleted
inserted
replaced
12061:e5003079dfa5 | 12065:10c59b8021ec |
---|---|
90 } | 90 } |
91 } catch(Exception exp) { | 91 } catch(Exception exp) { |
92 System.err.println("Warning: Can not create class filter!"); | 92 System.err.println("Warning: Can not create class filter!"); |
93 } | 93 } |
94 } | 94 } |
95 String outputDirectory = System.getProperty("sun.jvm.hotspot.tools.jcore.outputDir", "."); | 95 |
96 setOutputDirectory(outputDirectory); | 96 // outputDirectory and jarStream are alternatives: setting one closes the other. |
97 // If neither is set, use outputDirectory from the System property: | |
98 if (outputDirectory == null && jarStream == null) { | |
99 String dirName = System.getProperty("sun.jvm.hotspot.tools.jcore.outputDir", "."); | |
100 setOutputDirectory(dirName); | |
101 } | |
97 | 102 |
98 // walk through the system dictionary | 103 // walk through the system dictionary |
99 SystemDictionary dict = VM.getVM().getSystemDictionary(); | 104 SystemDictionary dict = VM.getVM().getSystemDictionary(); |
100 dict.classesDo(new SystemDictionary.ClassVisitor() { | 105 dict.classesDo(new SystemDictionary.ClassVisitor() { |
101 public void visit(Klass k) { | 106 public void visit(Klass k) { |