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.4 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css"/>
  5. <title>Sync Task</title>
  6. </head>
  7. <body>
  8. <h2><a name="get">Sync</a></h2>
  9. <p><em>Since Ant 1.6</em></p>
  10. <h3>Description</h3>
  11. <p>Synchronize a target directory from the files defined in one or
  12. more filesets.</p>
  13. <h3>Parameters</h3>
  14. <table border="1" cellpadding="2" cellspacing="0">
  15. <tr>
  16. <td valign="top"><b>Attribute</b></td>
  17. <td valign="top"><b>Description</b></td>
  18. <td align="center" valign="top"><b>Required</b></td>
  19. </tr>
  20. <tr>
  21. <td valign="top">todir</td>
  22. <td valign="top">the target directory to sync with the filesets</td>
  23. <td align="center" valign="top">Yes</td>
  24. </tr>
  25. <tr>
  26. <td valign="top">overwrite</td>
  27. <td valign="top">Overwrite existing files even if the destination
  28. files are newer.</td>
  29. <td valign="top" align="center">No; defaults to false.</td>
  30. </tr>
  31. <tr>
  32. <td valign="top">includeEmptyDirs</td>
  33. <td valign="top">Copy any empty directories included in the FileSet(s).
  34. </td>
  35. <td valign="top" align="center">No; defaults to true.</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">failonerror</td>
  39. <td valign="top">Log a warning message, but do not stop the build,
  40. when one of the nested filesets points to a directory that
  41. doesn't exist.
  42. </td>
  43. <td valign="top" align="center">No; defaults to true.</td>
  44. </tr>
  45. <tr>
  46. <td valign="top">verbose</td>
  47. <td valign="top">Log the files that are being copied.</td>
  48. <td valign="top" align="center">No; defaults to false.</td>
  49. </tr>
  50. <tr>
  51. <td valign="top">granularity</td>
  52. <td valign="top">The number of milliseconds leeway to give before
  53. deciding a file is out of date. This is needed because not every
  54. file system supports tracking the last modified time to the
  55. millisecond level. Default is 0 milliseconds, or 2 seconds on DOS
  56. systems. This can also be useful if source and target files live
  57. on separate machines with clocks being out of sync. <em>since Ant
  58. 1.6</em>.</td>
  59. </tr>
  60. </table>
  61. <h3>Parameters specified as nested elements</h3>
  62. <h4>fileset</h4>
  63. <p><a href="../CoreTypes/fileset.html">FileSet</a>s are used to select
  64. sets of files and directories.</p>
  65. <hr>
  66. <p align="center">Copyright &copy; 2003-2005 The Apache Software Foundation. All rights
  67. Reserved.</p>
  68. </body>
  69. </html>