Closed TorstenS73 closed 9 years ago
Simple solution built to resemble sample from Redlilne
<rpmfileset prefix="/tmp/rpmtest/conf" config="true" noreplace="true" file="conf/test1.conf" filemode="644" username="none" group="none"/>
(i.e. config="true" noreplace="true")
and current handling of file owner / file mode like this:
<mapping> <directory>/etc/some/config</directory> <!-- ... --> <config>true</config> <noreplace>true</noreplace> <sources> <source>${project.basedir}/target/someFile.txt</source> </sources> </mapping>
Someone may add a full Directive handling (as Redline seems to support it well in the Java API) but this would require some more complex design decisions about how the XML for that should look like, so this is at least a shortcut.
Detailts on the meaning of config versus noreplace may be found here: http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html
:+1: Thanks again!
Simple solution built to resemble sample from Redlilne
(i.e. config="true" noreplace="true")
and current handling of file owner / file mode like this:
Someone may add a full Directive handling (as Redline seems to support it well in the Java API) but this would require some more complex design decisions about how the XML for that should look like, so this is at least a shortcut.
Detailts on the meaning of config versus noreplace may be found here: http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html