From d9984ec92fad5c2d463f43a7009a0b84dc3d837f Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 22 Jul 2022 21:01:25 +0200 Subject: [PATCH] [test] Document deprecated attribute useAuxClasspath in schema --- .../net/sourceforge/pmd/test/schema/rule-tests_1_0_0.xsd | 8 +++++++- .../java/net/sourceforge/pmd/testframework/RuleTst.java | 2 +- pmd-test/src/main/resources/rule-tests_1_0_0.xsd | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pmd-test-schema/src/main/resources/net/sourceforge/pmd/test/schema/rule-tests_1_0_0.xsd b/pmd-test-schema/src/main/resources/net/sourceforge/pmd/test/schema/rule-tests_1_0_0.xsd index 1a049af0b6..6d8b1d2ac5 100644 --- a/pmd-test-schema/src/main/resources/net/sourceforge/pmd/test/schema/rule-tests_1_0_0.xsd +++ b/pmd-test-schema/src/main/resources/net/sourceforge/pmd/test/schema/rule-tests_1_0_0.xsd @@ -73,7 +73,13 @@ - + + + + This attribute is deprecated, it is assumed true and ignored. + + + diff --git a/pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTst.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTst.java index a8f898270b..87e76589d0 100644 --- a/pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTst.java +++ b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTst.java @@ -308,7 +308,7 @@ public abstract class RuleTst { /** * Extract a set of tests from an XML file. The file should be * ./xml/RuleName.xml relative to the test class. The format is defined in - * test-data.xsd. + * rule-tests_1_0_0.xsd in pmd-test-schema. */ RuleTestCollection parseTestCollection(Rule rule) { String testsFileName = getCleanRuleName(rule); diff --git a/pmd-test/src/main/resources/rule-tests_1_0_0.xsd b/pmd-test/src/main/resources/rule-tests_1_0_0.xsd index 1a049af0b6..6d8b1d2ac5 100644 --- a/pmd-test/src/main/resources/rule-tests_1_0_0.xsd +++ b/pmd-test/src/main/resources/rule-tests_1_0_0.xsd @@ -73,7 +73,13 @@ - + + + + This attribute is deprecated, it is assumed true and ignored. + + +