Skip to content

Commit

Permalink
Force creation of empty temp and log dirs in assembly descriptors (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
spbolton authored Jan 23, 2024
1 parent 018dec3 commit c594754
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
15 changes: 14 additions & 1 deletion dotCMS/src/assembly/descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@
<fileMode>0755</fileMode>
<directoryMode>0755</directoryMode>
</fileSet>
<fileSet>
<directory>${assembly-directory}/conf</directory>
<outputDirectory>temp</outputDirectory>
<excludes>
<exclude>**/*</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${assembly-directory}/conf</directory>
<outputDirectory>/logs</outputDirectory>
<excludes>
<exclude>**/*</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${assembly-directory}</directory>
<outputDirectory></outputDirectory>
Expand All @@ -47,7 +61,6 @@
<exclude>**/felix-cache/**</exclude>
<exclude>**/webapps/cargorpc/**</exclude>
<exclude>**/work/**</exclude>
<exclude>**/temp/**</exclude>
<exclude>**/logs/**</exclude>
<exclude>**/lib/**</exclude>
<exclude>**/shared/**</exclude>
Expand Down
16 changes: 15 additions & 1 deletion dotCMS/src/main/docker/original/docker-descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>
<!-- hack to make sure these empty directories get included-->
<fileSet>
<directory>${assembly-directory}/dotserver/tomcat-${tomcat.version}/config</directory>
<outputDirectory>dotserver/tomcat-${tomcat.version}/temp</outputDirectory>
<excludes>
<exclude>**/*</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${assembly-directory}/dotserver/tomcat-${tomcat.version}/config</directory>
<outputDirectory>dotserver/tomcat-${tomcat.version}/logs</outputDirectory>
<excludes>
<exclude>**/*</exclude>
</excludes>
</fileSet>

<fileSet>
<directory>${assembly-directory}/dotserver/tomcat-${tomcat.version}</directory>
Expand All @@ -15,7 +30,6 @@
<exclude>**/felix-cache/**</exclude>
<exclude>**/webapps/cargorpc/**</exclude>
<exclude>**/work/**</exclude>
<exclude>**/temp/**</exclude>
<exclude>**/logs/**</exclude>
</excludes>
</fileSet>
Expand Down

0 comments on commit c594754

Please sign in to comment.