sstirling 01/01/29 16:16:49
Modified: gnat-tags/xml gnat-tags.xml
Added: gnat-tags/src/org/apache/taglibs/gnat copyTag.java
excludeTag.java filesetTag.java includeTag.java
moveTag.java patternSetTag.java
Log:
Revision Changes Path
1.1
jakarta-taglibs/gnat-tags/src/org/apache/taglibs/gnat/copyTag.java
Index: copyTag.java
===================================================================
/*
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.taglibs.gnat;
import org.apache.taglibs.gnat.util.*;
import javax.servlet.ServletContext;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.*;
public class copyTag extends BodyTagSupport
{
private File _f;
private String file = "";
private String todir = "";
private String tofile = "";
private boolean filtering = false;
private boolean flatten = false;
private boolean overwrite = true;
private boolean includeEmptyDirs = true;
private ResourceBundle gnatRB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
private ResourceBundle gnatERB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
public void setFile(String file) {
this.file = file;
}
public void setFiltering(boolean filtering) {
this.filtering = filtering;
}
public void setFlatten(boolean flatten) {
this.flatten = flatten;
}
public void setTodir(String todir) {
this.todir = todir;
}
public void setTofile(String tofile) {
this.tofile = tofile;
}
public void setOverwrite(boolean overwrite) {
this.overwrite = overwrite;
}
public void setIncludeEmptyDirs(boolean includeEmptyDirs) {
this.includeEmptyDirs = includeEmptyDirs;
}
public int doStartTag() throws JspException
{
return SKIP_BODY;
}
public int doEndTag() throws JspException
{
return EVAL_PAGE;
}
public String getFile() { return file; }
public boolean getFiltering() { return filtering; }
public boolean getFlatten() { return flatten; }
public String getTodir() { return todir; }
public String getTofile() { return tofile; }
public boolean getIncludeEmptyDirs() { return includeEmptyDirs; }
public boolean getOverwrite() { return overwrite; }
}
1.1
jakarta-taglibs/gnat-tags/src/org/apache/taglibs/gnat/excludeTag.java
Index: excludeTag.java
===================================================================
/*
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.taglibs.gnat;
import org.apache.taglibs.gnat.util.*;
import javax.servlet.ServletContext;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.*;
public class excludeTag extends TagSupport
{
private String name = "";
private ResourceBundle gnatRB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
private ResourceBundle gnatERB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
public void setName(String name) {
this.name = name;
}
public int doStartTag() throws JspException
{
return SKIP_BODY;
}
public int doEndTag() throws JspException
{
if (false)
{
throw new JspTagException( gnatRB.getString("mkdir.tag") + ": " +
gnatERB.getString("empty.dir.attribute") );
}
ServletContext ctx = pageContext.getServletContext();
return EVAL_PAGE;
}
public String getName() { return name; }
}
1.1
jakarta-taglibs/gnat-tags/src/org/apache/taglibs/gnat/filesetTag.java
Index: filesetTag.java
===================================================================
/*
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.taglibs.gnat;
import org.apache.taglibs.gnat.util.*;
import javax.servlet.ServletContext;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.*;
public class filesetTag extends BodyTagSupport
{
private String dir = "";
private boolean defaultexcludes = true;
private String includes = "";
private String excludes = "";
private String includesFile = "";
private String excludesFile = "";
private ResourceBundle gnatRB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
private ResourceBundle gnatERB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
public void setDir(String dir) {
this.dir = dir;
}
public void setDefaultexcludes(boolean defaultexcludes) {
this.defaultexcludes = defaultexcludes;
}
public void setExcludes(String excludes) {
this.excludes = excludes;
}
public void setIncludes(String includes) {
this.includes = includes;
}
public void setExcludesFile(String excludesFile) {
this.excludesFile = excludesFile;
}
public void setIncludesFile(String includesFile) {
this.includesFile = includesFile;
}
public int doStartTag() throws JspException
{
return SKIP_BODY;
}
public int doEndTag() throws JspException
{
if (false)
{
throw new JspTagException( gnatRB.getString("mkdir.tag") + ": " +
gnatERB.getString("empty.dir.attribute") );
}
ServletContext ctx = pageContext.getServletContext();
return EVAL_PAGE;
}
public String getDir() { return dir; }
public boolean getDefaultexcludes() { return defaultexcludes; }
public String getExcludes() { return excludes; }
public String getIncludes() { return includes; }
public String getExcludesFile() { return excludesFile; }
public String getIncludesFile() { return includesFile; }
}
1.1
jakarta-taglibs/gnat-tags/src/org/apache/taglibs/gnat/includeTag.java
Index: includeTag.java
===================================================================
/*
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.taglibs.gnat;
import org.apache.taglibs.gnat.util.*;
import javax.servlet.ServletContext;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.*;
public class includeTag extends TagSupport
{
private String name = "";
private ResourceBundle gnatRB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
private ResourceBundle gnatERB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
public void setName(String name) {
this.name = name;
}
public int doStartTag() throws JspException
{
return SKIP_BODY;
}
public int doEndTag() throws JspException
{
if (false)
{
throw new JspTagException( gnatRB.getString("mkdir.tag") + ": " +
gnatERB.getString("empty.dir.attribute") );
}
ServletContext ctx = pageContext.getServletContext();
return EVAL_PAGE;
}
public String getName() { return name; }
}
1.1
jakarta-taglibs/gnat-tags/src/org/apache/taglibs/gnat/moveTag.java
Index: moveTag.java
===================================================================
/*
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.taglibs.gnat;
import org.apache.taglibs.gnat.util.*;
import javax.servlet.ServletContext;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.*;
public class moveTag extends BodyTagSupport
{
//private File _f;
private String file = "";
private String todir = "";
private String tofile = "";
private boolean filtering = false;
private boolean flatten = false;
private boolean overwrite = true;
private boolean includeEmptyDirs = true;
private ResourceBundle gnatRB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
private ResourceBundle gnatERB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
public void setFile(String file) {
this.file = file;
}
public void setFiltering(boolean filtering) {
this.filtering = filtering;
}
public void setFlatten(boolean flatten) {
this.flatten = flatten;
}
public void setTodir(String todir) {
this.todir = todir;
}
public void setTofile(String tofile) {
this.tofile = tofile;
}
public void setOverwrite(boolean overwrite) {
this.overwrite = overwrite;
}
public void setIncludeEmptyDirs(boolean includeEmptyDirs) {
this.includeEmptyDirs = includeEmptyDirs;
}
public int doStartTag() throws JspException
{
return SKIP_BODY;
}
public int doEndTag() throws JspException
{
return EVAL_PAGE;
}
public String getFile() { return file; }
public boolean getFiltering() { return filtering; }
public boolean getFlatten() { return flatten; }
public String getTodir() { return todir; }
public String getTofile() { return tofile; }
public boolean getIncludeEmptyDirs() { return includeEmptyDirs; }
public boolean getOverwrite() { return overwrite; }
}
1.1
jakarta-taglibs/gnat-tags/src/org/apache/taglibs/gnat/patternSetTag.java
Index: patternSetTag.java
===================================================================
/*
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.taglibs.gnat;
import org.apache.taglibs.gnat.util.*;
import javax.servlet.ServletContext;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.*;
public class patternSetTag extends BodyTagSupport
{
private String includes = "";
private String excludes = "";
private String includesFile = "";
private String excludesFile = "";
private ResourceBundle gnatRB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
private ResourceBundle gnatERB =
ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
public void setExcludes(String excludes) {
this.excludes = excludes;
}
public void setIncludes(String includes) {
this.includes = includes;
}
public void setExcludesFile(String excludesFile) {
this.excludesFile = excludesFile;
}
public void setIncludesFile(String includesFile) {
this.includesFile = includesFile;
}
public int doStartTag() throws JspException
{
return SKIP_BODY;
}
public int doEndTag() throws JspException
{
if (false)
{
throw new JspTagException( gnatRB.getString("mkdir.tag") + ": " +
gnatERB.getString("empty.dir.attribute") );
}
ServletContext ctx = pageContext.getServletContext();
return EVAL_PAGE;
}
public String getExcludes() { return excludes; }
public String getIncludes() { return includes; }
public String getExcludesFile() { return excludesFile; }
public String getIncludesFile() { return includesFile; }
}
1.3 +104 -0 jakarta-taglibs/gnat-tags/xml/gnat-tags.xml
Index: gnat-tags.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs/gnat-tags/xml/gnat-tags.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- gnat-tags.xml 2001/01/27 02:02:54 1.2
+++ gnat-tags.xml 2001/01/30 00:16:49 1.3
@@ -50,6 +50,58 @@
that supports the JavaServer Pages Specification, version 1.1 or higher.
</requirements-info>
+ <!-- copy tag -->
+ <tag>
+ <name>copy</name>
+ <tagclass>org.apache.taglibs.gnat.copyTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <info>Copies a file, files or a directory and all its files and
subdirectories.</info>
+ <attribute>
+ <name>file</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>tofile</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>todir</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>overwrite</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>filtering</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>flatten</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>includeEmptyDirs</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <script-variable>No</script-variable>
+ <restrictions>For now, see Ant docs on the copy task</restrictions>
+ <usage>
+ <comment>
+ </comment>
+ <code>
+ <![CDATA[<gnat:copy file="<%= tempdir+"/foodir" todir="<%=
System.getProperty("user.dir") %>" %>" />]]>
+ </code>
+ </usage>
+ </tag>
+
<!-- deltree tag -->
<tag>
<name>deltree</name>
@@ -285,6 +337,58 @@
</comment>
<scriptlet>final String foodir = "/foodir/bar/baz/pickles";</scriptlet>
<code><![CDATA[<gnat:mkdir dir="<%= tempdir+foodir %>"/>]]></code>
+ </usage>
+ </tag>
+
+ <!-- move tag -->
+ <tag>
+ <name>move</name>
+ <tagclass>org.apache.taglibs.gnat.moveTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <info>Moves a file, files or a directory and all its files and
subdirectories.</info>
+ <attribute>
+ <name>file</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>tofile</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>todir</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>overwrite</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>filtering</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>flatten</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>includeEmptyDirs</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <script-variable>No</script-variable>
+ <restrictions>For now, see Ant docs on the move task</restrictions>
+ <usage>
+ <comment>
+ </comment>
+ <code>
+ <![CDATA[<gnat:move file="<%= tempdir+"/foodir" todir="<%=
System.getProperty("user.dir") %>" %>" />]]>
+ </code>
</usage>
</tag>