File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
main/java/datadog/trace/bootstrap/config/provider/stableconfig
test/groovy/datadog/trace/bootstrap/config/provider Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ compileMain_java6Java.configure {
2929 setJavaVersion(it, 8 )
3030 sourceCompatibility = JavaVersion . VERSION_1_6
3131 targetCompatibility = JavaVersion . VERSION_1_6
32- destinationDirectory = layout. buildDirectory. dir(" classes/java/main" )
3332}
3433
3534tasks. compileJava. dependsOn compileMain_java6Java
@@ -52,6 +51,9 @@ ext.generalShadowJarConfig = {
5251
5352 duplicatesStrategy = DuplicatesStrategy . FAIL
5453
54+ // Include AgentPreCheck compiled with Java 6.
55+ from sourceSets. main_java6. output
56+
5557 // Remove some cruft from the final jar.
5658 // These patterns should NOT include **/META-INF/maven/**/pom.properties, which is
5759 // used to report our own dependencies, but we should remove the top-level metadata
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ public Selector(Object yaml) {
2121 Map map = (Map ) yaml ;
2222 origin = (String ) map .get ("origin" );
2323 key = (String ) map .get ("key" );
24- matches = Collections .unmodifiableList ((List <String >) map .get ("matches" ));
24+ List <String > rawMatches = (List <String >) map .get ("matches" );
25+ matches =
26+ rawMatches != null ? Collections .unmodifiableList (rawMatches ) : Collections .emptyList ();
2527 operator = (String ) map .get ("operator" );
2628 }
2729
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ apm_configuration_rules:
4242 matches: ["mysvc"]
4343 configuration:
4444 KEY_FOUR: "ignored"
45+ - selectors:
46+ - origin: process_arguments
47+ key: "-Darg1"
48+ operator: exists
49+ configuration:
50+ KEY_FIVE: "ignored"
4551"""
4652 Files . write(filePath, yaml. getBytes())
4753 StableConfigSource.StableConfig cfg = StableConfigParser . parse(filePath. toString())
You can’t perform that action at this time.
0 commit comments