Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277945 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
c471acd11a
4 changed files with 25 additions and 3 deletions
  1. +14
    -0
      src/main/org/apache/tools/ant/taskdefs/War.java
  2. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java
  3. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/XSLTLogger.java
  4. +6
    -1
      src/main/org/apache/tools/ant/taskdefs/XSLTLoggerAware.java

+ 14
- 0
src/main/org/apache/tools/ant/taskdefs/War.java View File

@@ -57,6 +57,7 @@ public class War extends Jar {

private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();

/** Constructor for the War Task. */
public War() {
super();
archiveType = "war";
@@ -66,6 +67,7 @@ public class War extends Jar {
/**
* <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 @@ public class War extends Jar {
/**
* 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 @@ public class War extends Jar {

/**
* add files under WEB-INF/lib/
* @param fs the zip file set to add
*/

public void addLib(ZipFileSet fs) {
@@ -104,6 +108,7 @@ public class War extends Jar {

/**
* 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 @@ public class War extends Jar {

/**
* 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 @@ public class War extends Jar {
/**
* 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 @@ public class War extends Jar {

/**
* 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)


+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ package org.apache.tools.ant.taskdefs;
public interface XSLTLiaison2 extends XSLTLiaison {
/**
* Configure the liasion from the XSLTProcess task
* @param xsltTask the XSLTProcess task
*/
void configure(XSLTProcess xsltTask);
}

+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/XSLTLogger.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,11 +18,13 @@
package org.apache.tools.ant.taskdefs;

/**
* Interface to log messages for XSLT
* @since Ant 1.5
*/
public interface XSLTLogger {
/**
* Log a message.
* @param msg the message to log
*/
void log(String msg);
}

+ 6
- 1
src/main/org/apache/tools/ant/taskdefs/XSLTLoggerAware.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,8 +18,13 @@
package org.apache.tools.ant.taskdefs;

/**
* Interface for a class that one can set an XSLTLogger on.
* @since Ant 1.5
*/
public interface XSLTLoggerAware {
/**
* Set the logger for this class.
* @param l the logger
*/
void setLogger(XSLTLogger l);
}

Loading…
Cancel
Save