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

Answered

Comments

2 comments

  • Avatar
    Jake

    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>
    
  • Avatar
    laiyongyong

    Why can't i use /tmp/install.conf as the origin file?

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

    it always tell me "Errror executing action <copyfile>: No origin file found that matched >/tmp/conf/myfile.template"

Please sign in to leave a comment.