Changeset 91
- Timestamp:
- 07/11/06 06:55:48 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html
r88 r91 850 850 <h2><a name="TarTask"></a>TarTask</h2> 851 851 <p> The <em>TarTask</em> creates a tarball from a fileset or directory.</p> 852 <h3>Example</h3> 853 <pre><tar destfile="phing.tar" basedir="." compression="gzip"> 852 853 <h3>Examples</h3> 854 <pre><tar destfile="phing.tar" compression="gzip"> 854 855 <fileset dir="."> 855 856 <include name="**/**" /> … … 861 862 the archive.</p> 862 863 864 <pre><tar destfile="phing.tar" basedir="." compression="gzip"/></pre> 865 866 <p>The second example uses the basedir attribute to include the contents of that directory (including 867 subdirectories) in the archive.</p> 868 863 869 <h3>Attributes</h3> 864 870 <table> … … 898 904 </table> 899 905 900 <p><b>Important note :</b> files are not replaced if they are already present in the906 <p><b>Important note #1:</b> files are not replaced if they are already present in the 901 907 archive.</p> 908 909 <p><b>Important note #2:</b> using basedir and fileset simultaneously can result in 910 strange contents in the archive.</p> 902 911 903 912 <h3>Supported Nested Tags</h3> … … 959 968 <h2><a name="ZipTask"></a>ZipTask</h2> 960 969 <p> The <em>ZipTask</em> creates a .zip archive from a fileset or directory.</p> 970 971 <h3>Examples</h3> 972 <pre><zip destfile="phing.zip"> 973 <fileset dir="."> 974 <include name="**/**" /> 975 </fileset> 976 </zip> 977 </pre> 978 979 <p>The above example uses a fileset to determine which files to include in 980 the archive.</p> 981 982 <pre><zip destfile="phing.zip" basedir="."/></pre> 983 984 <p>The second example uses the basedir attribute to include the contents of that directory (including 985 subdirectories) in the archive.</p> 986 961 987 <h3>Example</h3> 962 <pre><zip destfile="phing.zip" basedir="."/>963 </pre>964 988 965 989 <h3>Attributes</h3> … … 992 1016 </tbody> 993 1017 </table> 1018 1019 <p><b>Important note:</b> using basedir and fileset simultaneously can result in 1020 strange contents in the archive.</p> 994 1021 995 1022 <h3>Supported Nested Tags</h3>
