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

asked 12 Sep '11, 08:18

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


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>
link

answered 12 Sep '11, 08:20

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

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"

link

answered 23 Apr '13, 22:47

laiyongyong's gravatar image

laiyongyong
1131314
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×29
×8
×7

Asked: 12 Sep '11, 08:18

Seen: 4,653 times

Last updated: 23 Apr '13, 22:47