You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2022/05/24 21:22:21 UTC

[plc4x] branch develop updated: fix(bacnet): Adjusted the produceTaggedPrivateEnums.groovy script to also work on windows systems.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3945014147 fix(bacnet): Adjusted the produceTaggedPrivateEnums.groovy script to also work on windows systems.
3945014147 is described below

commit 3945014147c16ffb7bcf9d850d5c81622be192b0
Author: cdutz <ch...@c-ware.de>
AuthorDate: Tue May 24 23:22:10 2022 +0200

    fix(bacnet): Adjusted the produceTaggedPrivateEnums.groovy script to also work on windows systems.
---
 protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy b/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy
index 6fe92105e7..28c3302716 100644
--- a/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy
+++ b/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy
@@ -23,7 +23,7 @@ import org.apache.maven.project.MavenProject
 project = (MavenProject) project
 def bacnetEnumsFile = new File(project.basedir, "src/main/resources/protocols/bacnetip/bacnet-private-enums.mspec")
 foundEnums = []
-enumPattern = ~/\[enum \w+ \d+ (\w+)\n.*' *([\w_]+)/
+enumPattern = ~/\[enum \w+ \d+ (\w+)(\r)?\n.*' *([\w_]+)/
 matcher = bacnetEnumsFile.text =~ enumPattern
 if (matcher.find()) {
     matcher.each {