Skip to content

Commit 6c61401

Browse files
authored
1511 enable custom template set group ids for lookup (devonfw#1535)
* devonfw#1511 added new method to read properties in ConfigurationFinder.java new TemplateSetConfiguration Class to save properties new test cases in ConfigurationFinderTest.java * devonfw#1511 fixed logic in method readTemplateSetConfiguration in ConfigurationFinder added hideTemplates variable in TemplateSetConfiguration completed 2 out of 3 tests cases * devonfw#1511 corrected CheckTemplateSetConfiguration logic in ConfigurationFinder.java Test cases Correction for CheckTemplateSetConfiguration in ConfigurationFinderTest.java New Constants for the new properties created in ConfigurationConstants.java CheckTemplateSetConfiguration Called in load function in CobiGenPropertiesReader.java * devonfw#1511 canceled the method call in load properties in CobiGenPropertiesReader.java * devonfw#1511 written Documentation Modified the properties function to read properties corrected tests * devonfw#1511 documentation correction * devonfw#1511 Documentation correction * devonfw#1511 Documentation Correction * devonfw#1511 requested changes * devonfw#1511 requested changes #2 * devonfw#1511 requested changes 2 * devonfw#1511 requested changes * devonfw#1511 fix defaultGroupId logic * devonfw#1511 corrected hide annotation * devonfw#1511 requested changes
1 parent a1ca29a commit 6c61401

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cobigen/cobigen-core/src/test/java/com/devonfw/cobigen/unittest/config/ConfigurationFinderTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void validConfigurationTest() {
4747
assertThat(conf.getGroupIds()).containsSequence("devonfw-cobigen-bla", "abcd", "blablob",
4848
ConfigurationConstants.CONFIG_PROPERTY_TEMPLATE_SETS_DEFAULT_GROUPID);
4949
assertThat(conf.isAllowSnapshots()).isTrue();
50-
assertThat(conf.getHideTemplates()).contains("com.devonfw(:test-artifact(:3.2.1-SNAPSHOT))");
50+
assertThat(conf.getHideTemplates()).contains("com.devonfw:test-artifact:3.2.1-SNAPSHOT");
5151
}
5252

5353
/**
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
template-sets.groupIds=devonfw-cobigen-bla,abcd,blablob
22
template-sets.allow-snapshots=true
33
template-sets.disable-default-lookup=false
4-
template-sets.hide=com.devonfw(:test-artifact(:3.2.1-SNAPSHOT))
4+
template-sets.hide=com.devonfw:test-artifact:3.2.1-SNAPSHOT

documentation/cobigen-core_configuration.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ configure multiple (comma separated) `groupIds`. By default, (public) CobiGen `g
354354
template-sets.groupIds=com.devonfw.cobigen.templates,jaxen,jakarta.xml.bind
355355
template-sets.allow-snapshots=true
356356
template-sets.disable-default-lookup=false
357-
template-sets.hide=com.devonfw(:test-artifact(:3.2.1-SNAPSHOT))
357+
template-sets.hide=com.devonfw.cobigen.templates:crud-angular-client-app:2021.12.007-SNAPSHOT
358358
```
359359

360360
== Basic Template Model

0 commit comments

Comments
 (0)