ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 699] New - <style> has JAXP 1.1 dependency
Date Sun, 25 Feb 2001 12:26:44 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=699

*** shadow/699	Sun Feb 25 04:26:44 2001
--- shadow/699.tmp.8473	Sun Feb 25 04:26:44 2001
***************
*** 0 ****
--- 1,78 ----
+ +============================================================================+
+ | <style> has JAXP 1.1 dependency                                            |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 699                         Product: Ant                     |
+ |       Status: NEW                         Version: Nightly build           |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority: Medium                    Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: jeff@socialchange.net.au                                     |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The Style task is marked as "core", yet when invoked, it uses
+ org.apache.tools.ant.taskdefs.optional.TraXLiaison.
+ 
+ To replicate:
+ 
+ Setup:
+ 
+ - Make sure lib/optional does *not* include anything (we want just the core)
+ - Clear your CLASSPATH
+ - Run "./build.sh clean ; ./build.sh"
+ - Append `pwd`/dist to your PATH
+ - Set ANT_HOME to `pwd`/dist
+ - Add jaxp.jar (1.0) and a compliant parser to your CLASSPATH
+ 
+ Test file:
+ - Create the following test.xml:
+ <?xml version="1.0"?>
+ <project name="bugtester" default="main" basedir=".">
+   <target name="main">
+     <style basedir="." destdir="." style="my.xsl">
+       <include name="my.xml"/>
+     </style>
+   </target>
+ </project>
+ 
+ - Invoke with "ant -buildfile test.xml"
+ You should get the output:
+ 
+ Buildfile: test.xml
+ 
+ main:
+     [style] Transforming into /home/jeff/apache/jakarta/jakarta-ant
+ 
+ BUILD FAILED
+ 
+ /home/jeff/apache/jakarta/jakarta-ant/test.xml:4:
+ java.lang.ClassNotFoundException:
+ org.apache.tools.ant.taskdefs.optional.TraXLiaison
+ --- Nested Exception ---
+ java.lang.ClassNotFoundException:
+ org.apache.tools.ant.taskdefs.optional.TraXLiaison
+         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
+         at java.security.AccessController.doPrivileged(Native Method)
+         at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
+         at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
+         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
+         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
+         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
+         at java.lang.Class.forName0(Native Method)
+         at java.lang.Class.forName(Class.java:124)
+         at
+ org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java)
+         at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java)
+         at org.apache.tools.ant.Target.execute(Target.java)
+         at org.apache.tools.ant.Project.runTarget(Project.java)
+         at org.apache.tools.ant.Project.executeTarget(Project.java)
+         at org.apache.tools.ant.Project.executeTargets(Project.java)
+         at org.apache.tools.ant.Main.runBuild(Main.java)
+         at org.apache.tools.ant.Main.main(Main.java)
+ 
+ Total time: 2 seconds
+ nescafe:~/apache/jakarta/jakarta-ant$

Mime
View raw message