You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by an...@apache.org on 2006/04/21 01:00:48 UTC

svn commit: r395723 - in /ant/core/trunk: ./ docs/manual/ docs/manual/CoreTasks/ src/main/org/apache/tools/ant/taskdefs/ src/main/org/apache/tools/ant/taskdefs/optional/ src/testcases/org/apache/tools/ant/taskdefs/optional/

Author: antoine
Date: Thu Apr 20 16:00:46 2006
New Revision: 395723

URL: http://svn.apache.org/viewcvs?rev=395723&view=rev
Log:
Remove xslp usage from ant. 
Bugzilla 23455.

Removed:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/XslpLiaison.java
    ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/XslpLiaisonTest.java
Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/build.xml
    ant/core/trunk/docs/manual/CoreTasks/style.html
    ant/core/trunk/docs/manual/install.html
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewcvs/ant/core/trunk/WHATSNEW?rev=395723&r1=395722&r2=395723&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Thu Apr 20 16:00:46 2006
@@ -74,6 +74,9 @@
 * A bug in SQLExec would prevent the execution of trailing,
   non-semicolon-delimited statements.  Bugzilla Report 37764.
 
+* support for the XSL:P XML parser has been removed.
+  Bugzilla Report 23455.
+
 Fixed bugs:
 -----------
 

Modified: ant/core/trunk/build.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/build.xml?rev=395723&r1=395722&r2=395723&view=diff
==============================================================================
--- ant/core/trunk/build.xml (original)
+++ ant/core/trunk/build.xml Thu Apr 20 16:00:46 2006
@@ -209,10 +209,6 @@
     </or>
   </selector>
 
-  <selector id="needs.xslp">
-    <filename name="${optional.package}/XslpLiaison*"/>
-  </selector>
-
   <selector id="needs.apache-resolver">
     <filename name="${apache.resolver.type.package}/**"/>
   </selector>
@@ -419,9 +415,6 @@
         <available resource="META-INF/services/javax.xml.transform.TransformerFactory"/>
       </or>
     </condition>
-    <available property="xslp.present"
-      classname="com.kvisco.xsl.XSLProcessor"
-      classpathref="classpath"/>
     <available property="apache.resolver.present"
       classname="org.apache.xml.resolver.tools.CatalogResolver"
       classpathref="classpath"/>
@@ -682,7 +675,6 @@
 
             <selector refid="needs.trax" unless="trax.present"/>
             <selector refid="needs.xalan1" unless="xalan.present"/>
-            <selector refid="needs.xslp" unless="xslp.present"/>
             <selector refid="needs.apache-resolver" unless="apache.resolver.present"/>
             <selector refid="needs.junit" unless="junit.present"/>
             <selector refid="needs.apache-regexp"
@@ -865,7 +857,6 @@
           <or>
             <selector refid="needs.trax"/>
             <selector refid="needs.xalan1"/>
-            <selector refid="needs.xslp"/>
             <selector refid="needs.apache-resolver"/>
             <selector refid="needs.junit"/>
             <selector refid="needs.apache-regexp"/>
@@ -913,7 +904,6 @@
 
     <optional-jar dep="trax"/>
     <optional-jar dep="xalan1"/>
-    <optional-jar dep="xslp"/>
     <optional-jar dep="apache-resolver"/>
     <optional-jar dep="junit"/>
     <optional-jar dep="apache-regexp"/>
@@ -1736,8 +1726,6 @@
           <exclude name="${optional.package}/XalanLiaisonTest.java"
             unless="bsf.present"/>
           <exclude name="${optional.package}/XalanLiaisonTest.java"
-            unless="xerces1.present"/>
-          <exclude name="${optional.package}/XslpLiaisonTest.java"
             unless="xerces1.present"/>
           <exclude name="${ant.package}/IncludeTest.java"
             unless="xerces1.present"/>

Modified: ant/core/trunk/docs/manual/CoreTasks/style.html
URL: http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/CoreTasks/style.html?rev=395723&r1=395722&r2=395723&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/style.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/style.html Thu Apr 20 16:00:46 2006
@@ -50,10 +50,7 @@
 <p>This task supports the use of a nested <code>&lt;param&gt;</code> element which is used to pass values
   to an <code>&lt;xsl:param&gt;</code> declaration.</p>
 <p>This task supports the use of a nested <a href="../CoreTypes/xmlcatalog.html">xmlcatalog</a>
-element which is used to perform Entity and URI resolution</p>
-<p><i><code>&lt;style&gt;</code> and <code>&lt;xslt&gt;</code> refer to the same Ant task and can be used interchangeably.</i></p>
-<p>If you want to use Xalan-J 1 or XSL:P, you also Ant optional JARs,
-    specifically ant-xalan1.jar and ant-xslp.jar</p>
+element which is used to perform Entity and URI resolution.</p>
 <h3>Parameters</h3>
 <table border="1" cellpadding="2" cellspacing="0">
   <tr>
@@ -83,9 +80,12 @@
   <tr>
     <td valign="top">style</td>
     <td valign="top">name of the stylesheet to use - given either relative
-      to the project's basedir or as an absolute path
-      <em><strong>DEPRECATED</strong> - can be specified as a path relative
-          to the basedir attribute of this task as well</em>.
+      to the project's basedir or as an absolute path.<br/>
+      <br/>
+      <em>deprecated variation :</em> <br/>
+      If the stylesheet cannot be found, and if you have specified the
+      attribute basedir for the task, ant will assume that the style
+      attribute is relative to the basedir of the task.
     </td>
     <td align="center" valign="top">Yes</td>
   </tr>
@@ -110,16 +110,20 @@
   <tr>
     <td valign="top">processor</td>
 
-    <td valign="top">name of the XSLT processor to use.  Permissible values are
-      &quot;trax&quot; for a TraX compliant processor (ie JAXP interface
-      implementation such as Xalan 2 or Saxon),
-      &quot;xslp&quot; for the XSL:P processor, &quot;xalan&quot; for
-      the Apache XML Xalan (version 1) processor the name of an
-      arbitrary XSLTLiaison class. Defaults to trax, followed by xalan
-      and then xslp (in that order). The first one found in your class
+    <td valign="top">name of the XSLT processor to use.
+      Permissible values are :<ul>
+      <li>&quot;trax&quot; for a TraX compliant processor (ie JAXP interface
+      implementation such as Xalan 2 or Saxon)</li>
+      <li>&quot;xalan&quot; for
+      the Apache XML Xalan (version 1) processor</li>
+      <li>the name of a custom class implementing the interface
+          <code>org.apache.tools.ant.taskdefs.XSLTLiaison.</code></li>
+      </ul>
+      Defaults to trax, followed by xalan
+      The first one found in your class
       path is the one that is used.
-
-      <em><strong>DEPRECATED</strong> - XSL:P and xalan are deprecated and no
+      <br/>
+      <em><strong>DEPRECATED</strong> - xalan (xalan1) is deprecated and no
       more supported.</em>.
       </td>
     <td align="center" valign="top">No</td>

Modified: ant/core/trunk/docs/manual/install.html
URL: http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/install.html?rev=395723&r1=395722&r2=395723&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/install.html (original)
+++ ant/core/trunk/docs/manual/install.html Thu Apr 20 16:00:46 2006
@@ -356,7 +356,7 @@
 
 <p><b>Note</b>: The bootstrap process of Ant requires a greedy
 compiler like Sun's javac or jikes.  It does not work with gcj or
-kjc.</b>
+kjc.</p>
 
 <p>Make sure you have downloaded any auxiliary jars required to
 build tasks you are interested in. These should either be available
@@ -433,7 +433,7 @@
     <td><b>Available At</b></td>
   </tr>
   <tr>
-    <td>An XSL transformer like Xalan or XSL:P</td>
+    <td>An XSL transformer like Xalan</td>
     <td>style task</td>
     <td>
     <b>If you use JDK 1.4+, an XSL transformer is already included, so you need not do anything special.</b><br>
@@ -564,7 +564,7 @@
            target="_top">http://jakarta.apache.org/log4j/docs/index.html</a></td>
   </tr>
   <tr>
-    <td><a name="commons-net">commons-net.jar</td>
+    <td><a name="commons-net">commons-net.jar</a></td>
     <td>ftp, rexec and telnet tasks<br>
     jakarta-oro 2.0.1 or later is required in any case together with commons-net.<br>
     For all users, a minimum version of commons-net of 1.4.0 is recommended.  Earlier 
@@ -649,7 +649,8 @@
 
 <ul>
 
-<li>The version of ant.jar and ant-optional.jar -and that they match</li>
+<li>The version of ant.jar and of the ant-*.jar containing the optional tasks -
+    and whether they match</li>
 
 <li>Which JAR files are int ANT_HOME/lib
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java?rev=395723&r1=395722&r2=395723&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java Thu Apr 20 16:00:46 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright  2000-2005 The Apache Software Foundation
+ * Copyright  2000-2006 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.
@@ -96,10 +96,6 @@
     private static final String TRAX_LIAISON_CLASS =
                         "org.apache.tools.ant.taskdefs.optional.TraXLiaison";
 
-    /** Name of the now-deprecated XSLP Liaison class */
-    private static final String XSLP_LIAISON_CLASS =
-                        "org.apache.tools.ant.taskdefs.optional.XslpLiaison";
-
     /** Name of the now-deprecated Xalan liaison class */
     private static final String XALAN_LIAISON_CLASS =
                         "org.apache.tools.ant.taskdefs.optional.XalanLiaison";
@@ -169,11 +165,6 @@
      * @since Ant 1.7
      */
     public static final String PROCESSOR_XALAN1 = "xalan";
-    /**
-     * The xsl:p processor (deprecated option)
-     * @since Ant 1.7
-     */
-    public static final String PROCESSOR_XSLP = "xslp";
 
     /**
      * Creates a new XSLTProcess Task.
@@ -430,8 +421,7 @@
 
     /**
      * Set the name of the XSL processor to use; optional, default trax.
-     * Other values are "xalan" for Xalan1 and "xslp" for XSL:P, though the
-     * later is strongly deprecated.
+     * Other values are "xalan" for Xalan1
      *
      * @param processor the name of the XSL processor
      */
@@ -472,10 +462,6 @@
         String classname;
         if (proc.equals(PROCESSOR_TRAX)) {
             classname= TRAX_LIAISON_CLASS;
-        } else if (proc.equals(PROCESSOR_XSLP)) {
-            log("DEPRECATED - xslp processor is deprecated. Use trax "
-                + "instead.");
-            classname = XSLP_LIAISON_CLASS;
         } else if (proc.equals(PROCESSOR_XALAN1)) {
             log("DEPRECATED - xalan processor is deprecated. Use trax "
                 + "instead.");
@@ -724,7 +710,7 @@
      */
     protected XSLTLiaison getLiaison() {
         // if processor wasn't specified, see if TraX is available.  If not,
-        // default it to xslp or xalan, depending on which is in the classpath
+        // default it to xalan, depending on which is in the classpath
         if (liaison == null) {
             if (processor != null) {
                 try {
@@ -739,13 +725,8 @@
                     try {
                         resolveProcessor(PROCESSOR_XALAN1);
                     } catch (Throwable e2) {
-                        try {
-                            resolveProcessor(PROCESSOR_XSLP);
-                        } catch (Throwable e3) {
-                            e3.printStackTrace();
-                            e2.printStackTrace();
-                            throw new BuildException(e1);
-                        }
+                        e2.printStackTrace();
+                        throw new BuildException(e1);
                     }
                 }
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org