Question

How can I copy a file or directory as part of an installation?

How can I copy a file or directory as part of an installation?

Answer:

You can copy a file or directory as part of an installation using a <copyFile> action as in the following example:

<copyFile>
   <origin>${installdir}/conf/myfile.template</origin>
   <destination>${installdir}/conf/myfile.conf</destination>
</copyFile>