forked from devonfw/cobigen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devonfw#1454 added 2nd template set artifact to test
- Loading branch information
1 parent
776aee9
commit a956637
Showing
3 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...egrationtests/ProcessTemplateSetTest/crud-openapi-server-app-2021.12.007-template-set.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:templateSetConfiguration version="6.0" xmlns:tns="http://capgemini.com/devonfw/cobigen/TemplateSetConfiguration" xmlns:cc="http://capgemini.com/devonfw/cobigen/ContextConfiguration" xmlns:tc="http://capgemini.com/devonfw/cobigen/TemplatesConfiguration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://capgemini.com/devonfw/cobigen/TemplateSetConfiguration templateSetConfiguration.xsd "> | ||
|
||
<cc:contextConfiguration version="6.0"> | ||
<cc:trigger id="crud_openapi_server_app" type="java"> | ||
<cc:matcher type="fqn" value="*"></cc:matcher> | ||
</cc:trigger> | ||
<cc:tags> | ||
<cc:tag name="bla"/> | ||
</cc:tags> | ||
</cc:contextConfiguration> | ||
|
||
<tc:templatesConfiguration version="6.0"> | ||
<tc:templates> | ||
<tc:template name="prefix_Foo2Class.java" | ||
destinationPath="src/main/java/foo/Foo2Class${variable}.java" templateFile="templates/foo/Foo2Class.java.ftl" | ||
mergeStrategy="javamerge"/> | ||
<tc:templateExtension ref="prefix2_FooClass.java" | ||
destinationPath="adapted/path/FooClass.java" mergeStrategy="javamerge" targetCharset="ISO-8859-1"/> | ||
<tc:templateExtension ref="prefix2_Foo2Class.java"/> | ||
</tc:templates> | ||
|
||
<tc:templateScans> | ||
<tc:templateScan templateNamePrefix="prefix_" templatePath="templates/foo" | ||
destinationPath="src/main/java/foo"/> | ||
<tc:templateScan templateNamePrefix="prefix2_" templatePath="templates/bar" | ||
destinationPath="src/main/java/bar"/> | ||
</tc:templateScans> | ||
<tc:increments> | ||
<tc:increment name="increment1" description="Increment1 description" explanation="Creates necessary interfaces and methods for the SpringData Repository to interact with the database."> | ||
<tc:templateRef ref="${variables.entityName}Repository.java" /> | ||
</tc:increment> | ||
<tc:increment name="increment2" description="Increment2 description" explanation="Creates necessary interfaces and methods for the SpringData Repository to interact with the database."> | ||
<tc:templateRef ref="${variables.entityName}Repository.java" /> | ||
</tc:increment> | ||
</tc:increments> | ||
</tc:templatesConfiguration> | ||
|
||
</tns:templateSetConfiguration> |