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 2.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. <tr>
  50. <td valign="top">granularity</td>
  51. <td valign="top">The number of milliseconds leeway to give before
  52. deciding a file is out of date. This is needed because not every
  53. file system supports tracking the last modified time to the
  54. millisecond level. Default is 0 milliseconds, or 2 seconds on DOS
  55. systems. This can also be useful if source and target files live
  56. on separate machines with clocks being out of sync. <em>since Ant
  57. 1.6</em>.</td>
  58. </tr>
  59. </table>
  60. <h3>Parameters specified as nested elements</h3>
  61. <h4>fileset</h4>
  62. <p><a href="../CoreTypes/fileset.html">FileSet</a>s are used to select
  63. sets of files and directories.</p>
  64. <hr>
  65. <p align="center">Copyright &copy; 2003 Apache Software Foundation. All rights
  66. Reserved.</p>
  67. </body>
  68. </html>