peterreilly 2005/03/14 05:52:22 Modified: src/main/org/apache/tools/ant/taskdefs War.java Log: javadoc Revision Changes Path 1.41 +14 -0 ant/src/main/org/apache/tools/ant/taskdefs/War.java Index: War.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/War.java,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- War.java 6 Jan 2005 12:05:05 -0000 1.40 +++ War.java 14 Mar 2005 13:52:22 -0000 1.41 @@ -57,6 +57,7 @@ private static final FileUtils FILE_UTILS = FileUtils.getFileUtils(); + /** Constructor for the War Task. */ public War() { super(); archiveType = "war"; @@ -66,6 +67,7 @@ /** * <i>Deprecated<i> name of the file to create * -use <tt>destfile</tt> instead. + * @param warFile the destination file * @deprecated Use setDestFile(File) instead * @ant.attribute ignore="true" */ @@ -76,6 +78,7 @@ /** * set the deployment descriptor to use (WEB-INF/web.xml); * required unless <tt>update=true</tt> + * @param descr the deployment descriptor file */ public void setWebxml(File descr) { deploymentDescriptor = descr; @@ -94,6 +97,7 @@ /** * add files under WEB-INF/lib/ + * @param fs the zip file set to add */ public void addLib(ZipFileSet fs) { @@ -104,6 +108,7 @@ /** * add files under WEB-INF/classes + * @param fs the zip file set to add */ public void addClasses(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. @@ -113,6 +118,7 @@ /** * files to add under WEB-INF; + * @param fs the zip file set to add */ public void addWebinf(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. @@ -123,6 +129,9 @@ /** * override of parent; validates configuration * before initializing the output stream. + * @param zOut the zip output stream + * @throws IOException on output error + * @throws BuildException if invalid configuration */ protected void initZipOutputStream(ZipOutputStream zOut) throws IOException, BuildException { @@ -136,6 +145,11 @@ /** * Overridden from Zip class to deal with web.xml + * @param file the file to add to the archive + * @param zOut the stream to write to + * @param vPath the name this entry shall have in the archive + * @param mode the Unix permissions to set. + * @throws IOException on output error */ protected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]