File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
control/src/main/kotlin/spp/probe Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ object ProbeConfiguration {
29
29
30
30
private var rawProperties: Map <String , Map <String , Any >>? = null
31
31
private var localProperties: JsonObject ? = null
32
+ var customProbeFile: String? = null
32
33
33
- init {
34
+ fun load () {
34
35
var localFile = File (" spp-probe.yml" )
36
+ customProbeFile?.let { localFile = File (it) }
35
37
try {
36
38
// working directory?
37
39
val mapper = ObjectMapper (YAMLFactory ())
Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ object SourceProbe {
111
111
112
112
@JvmStatic
113
113
fun premain (args : String? , inst : Instrumentation ) {
114
+ ProbeConfiguration .customProbeFile = args
115
+ ProbeConfiguration .load()
116
+ if (ProbeConfiguration .isNotQuite) println (" SourceProbe initiated via premain. args: $args " )
114
117
if (isAgentInitialized) {
115
118
if (ProbeConfiguration .isNotQuite) println (" SourceProbe is already initialized" )
116
119
return
You can’t perform that action at this time.
0 commit comments