You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sync.html 1.8 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Sync Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="get">Sync</a></h2>
  8. <p><em>Since Ant 1.6</em></p>
  9. <h3>Description</h3>
  10. <p>Synchronize a target directory from the files defined in one or
  11. more filesets.</p>
  12. <h3>Parameters</h3>
  13. <table border="1" cellpadding="2" cellspacing="0">
  14. <tr>
  15. <td valign="top"><b>Attribute</b></td>
  16. <td valign="top"><b>Description</b></td>
  17. <td align="center" valign="top"><b>Required</b></td>
  18. </tr>
  19. <tr>
  20. <td valign="top">todir</td>
  21. <td valign="top">the target directory to sync with the filesets</td>
  22. <td align="center" valign="top">Yes</td>
  23. </tr>
  24. <tr>
  25. <td valign="top">overwrite</td>
  26. <td valign="top">Overwrite existing files even if the destination
  27. files are newer.</td>
  28. <td valign="top" align="center">No; defaults to false.</td>
  29. </tr>
  30. <tr>
  31. <td valign="top">includeEmptyDirs</td>
  32. <td valign="top">Copy any empty directories included in the FileSet(s).
  33. </td>
  34. <td valign="top" align="center">No; defaults to true.</td>
  35. </tr>
  36. <tr>
  37. <td valign="top">failonerror</td>
  38. <td valign="top">Log a warning message, but do not stop the build,
  39. when one of the nested filesets points to a directory that
  40. doesn't exist.
  41. </td>
  42. <td valign="top" align="center">No; defaults to true.</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">verbose</td>
  46. <td valign="top">Log the files that are being copied.</td>
  47. <td valign="top" align="center">No; defaults to false.</td>
  48. </tr>
  49. </table>
  50. <h3>Parameters specified as nested elements</h3>
  51. <h4>fileset</h4>
  52. <p><a href="../CoreTypes/fileset.html">FileSet</a>s are used to select
  53. sets of files and directories.</p>
  54. <hr>
  55. <p align="center">Copyright &copy; 2003 Apache Software Foundation. All rights
  56. Reserved.</p>
  57. </body>
  58. </html>