You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oscar Guadilla <og...@mail.com> on 2005/02/18 19:16:19 UTC
Ant + Jelly
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
Re: Ant + Jelly
Posted by Paul Libbrecht <pa...@activemath.org>.
Hi Oscar,
Sorry to answer so late... just change typedef into taskdef...
maybe you've done it already...
paul
Le 18 févr. 05, à 19:16, Oscar Guadilla a écrit :
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org