commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oscar Guadilla" <oguadi...@mail.com>
Subject Ant + Jelly
Date Fri, 18 Feb 2005 18:16:19 GMT
Good afternoon,

    I have an application building procedure which is based on ant. It is fine but it is a
language a bit limited (loop, if clause...). I have played a bit with Maven which supports
Jelly and I think it is very powerfull and that's why I have decided to choose jelly to solve
my problemm, but I am encountering a problemm I don't know how to solve:

    - ant script
   <typedef name="jelly"
        classname="org.apache.commons.jelly.task.JellyTask"
        classpath="${classpath}"/>
   <target name="jelly_integ">
      <echo message="Hello from inside Ant"/>
      <jelly script="/usr/j2se/jakarta-ant-1.5.3-1/jelly/transformFile.jelly"/>
   </target>

    - jelly script
<?xml version="1.0"?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:html="jelly:html"
xmlns:ant="jelly:ant" >
     <ant:echo>Hello from inside Jelly</ant:echo>     
</j:jelly>

    - standard output
    jelly_integ:
      [echo] Hello from inside Ant
    BUILD SUCCESSFUL

    - debug output
    jelly_integ:
     [echo] Hello from inside Ant
     Class java.io.File loaded from parent loader
     Class java.net.URL loaded from parent loader
     Finding class org.apache.commons.jelly.XMLOutput
     Class org.xml.sax.ContentHandler loaded from parent loader
     Class org.xml.sax.ext.LexicalHandler loaded from parent loader
     Class org.apache.commons.jelly.XMLOutput loaded from ant loader
     Finding class org.apache.commons.jelly.XMLOutput$1
     Class org.apache.commons.jelly.XMLOutput$1 loaded from ant loader
     Class java.lang.NullPointerException loaded from parent loader
     Class org.xml.sax.Attributes loaded from parent loader
     Class org.apache.tools.ant.Project loaded from parent loader
     BUILD SUCCESSFUL
     Total time: 6 seconds 


    Any idea why doesn't apper Hello from inside Jelly? What am I doing wrong?

Thank you very much for your help,
    Oscar Guadilla
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message