/Conf folder in crxde changes to git | Community
Skip to main content
Level 2
Jul 26, 2022 8:29 AM UTC
Solved

/Conf folder in crxde changes to git

Hi All,

Can any one help me to sorted out about the below thing:


I need to push the changes from /conf folder in crxde to git via git commit, so it will be merged into develop branch then deployed into Dev environment and higher environment.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Tushar_GuptaAccepted solution
Employee
Jul 26, 2022 11:27 AM UTC

That should not be an issue. You should just make your change and add a filter option that will do the trick.

The filter.xml consists of a set of filter elements, each with a mandatory root attribute and an optional list of include and exclude child elements. The include and exclude elements can be added as optional children to the filter element to allow more fine grained filtering of the subtree during import and export. 

define something like this

 

<workspaceFilter version="1.0">
<filter root="/apps/project1" />
<filter root="/etc/project1">
    <exclude pattern=".*\.gif" />
    <include pattern="/etc/project1/static(/.*)?" />
</filter>
<filter root="/conf/*" />
</workspaceFilter>

 

You should refer this for more details on filter.xml

https://jackrabbit.apache.org/filevault/filter.html 

5 replies

Employee
Jul 26, 2022 9:59 AM UTC

@manikanth_gvs ,can you please elaborate what exactly you are trying to achieve. Are you planning to move your changes from code repository to environment? or you are planning to make changes in CRXDE and wants it to float to your local repository?

Translate
Level 2
Jul 26, 2022 10:30 AM UTC

@tushar_gupta, Actually i have some configuration done in my local at /conf folder, My intension is i need to commit these changes to repo. 

Translate
Tushar_GuptaAccepted solution
Employee
Jul 26, 2022 11:27 AM UTC

That should not be an issue. You should just make your change and add a filter option that will do the trick.

The filter.xml consists of a set of filter elements, each with a mandatory root attribute and an optional list of include and exclude child elements. The include and exclude elements can be added as optional children to the filter element to allow more fine grained filtering of the subtree during import and export. 

define something like this

 

<workspaceFilter version="1.0">
<filter root="/apps/project1" />
<filter root="/etc/project1">
    <exclude pattern=".*\.gif" />
    <include pattern="/etc/project1/static(/.*)?" />
</filter>
<filter root="/conf/*" />
</workspaceFilter>

 

You should refer this for more details on filter.xml

https://jackrabbit.apache.org/filevault/filter.html 

Translate
Himanshu_Jain
New Participant
Jul 26, 2022 8:55 AM UTC

You can add the path in the filter.xml.

<workspaceFilter version="1.0">
<filter root="/conf*"/>
</workspaceFilter>

Translate
Himanshu Jain
Level 2
Jul 26, 2022 10:31 AM UTC

@himanshu_jain : I will check and update, thanks 🙂 

 

Translate