[ 
https://issues.apache.org/jira/browse/GEODE-6160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717541#comment-16717541
 ] 

ASF subversion and git services commented on GEODE-6160:
--------------------------------------------------------

Commit c91ab3d6f374870c9503762657baa3e01617f71d in geode-native's branch 
refs/heads/develop from [~bbender]
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=c91ab3d ]

GEODE-6160: Properly escape backslashes in .cpackignore (#416)

Co-authored-by: Matthew Reddington <[email protected]>

> CPack ignore syntax isn't properly escaped
> ------------------------------------------
>
>                 Key: GEODE-6160
>                 URL: https://issues.apache.org/jira/browse/GEODE-6160
>             Project: Geode
>          Issue Type: Bug
>          Components: native client
>            Reporter: Blake Bender
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In our .cpackignore file, we have lines of the form "\.foo", for example, but 
> the regex syntax also has to be escaped like a C string for some reason, aka "
> .foo".  
>  
> Repro steps:
>  * Configure using cmake in a clean repo
>  * cd into cmake build dir
>  * run 'cpack -G TGZ ---config CPackSourceConfig.cmake' to generate a source 
> package
> Expected result
>  * Source package generated without complaints
> Actual result
>  * Source package generated
>  * cpack complains about syntax, for example:
> {code:java}
> CMake Warning (dev) at 
> /Users/pivotal/Workspace/cmake-build-debug/geode-native/CPackSourceConfig.cmake:74
>  (set):
>   Syntax error in cmake code at
>  
>     
> /Users/pivotal/Workspace/cmake-build-debug/geode-native/CPackSourceConfig.cmake:74
>  
>   when parsing string
>  
>     
> /\.git/;/\.DS_Store;/build-./;/build/;/\.settings/;/\.cproject;/\.project;/\.idea/;\.vs/;\.vscode/;/examples/dotnet/./bin/;/examples/dotnet/.*/obj/;\.ruby-version
>  
>   Invalid escape sequence \.
>  {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to