AW: Jelly question

2003-07-09 Thread Rademacher Tobias
Mabye you can use xml:parse. It returns a dom4j Document in a variable. You
can use this variable to manipulate the document.

http://jakarta.apache.org/commons/jelly/libs/xml/tags.html#xml:parse

_Maybe_ use can use xml:parse in the body of the other xml-tags:

e.g.

xml:expr xpath=/bla/bli/[EMAIL PROTECTED]
  xml:parse xml=/path/fool.xml/
/xml:expr

don't know...

 -Ursprüngliche Nachricht-
 Von: Emmanuel boudrant [mailto:[EMAIL PROTECTED]
 Gesendet am: Mittwoch, 9. Juli 2003 10:37
 An: 'Maven Users List'
 Betreff: Jelly question
 
 Hi,
  
 Is it possible to update an xml file with Jelly ? For example, modify
 the content of an attribute or a tag.
  
 Thx,
 -emmanuel
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Jelly question

2003-07-09 Thread Paul Libbrecht
I do hope that this should be solved using the appropriate namespace 
declarations !

Thanks for the report wether it does or not work.

Paul

On Mercredi, juil 9, 2003, at 11:12 Europe/Paris, Rademacher Tobias 
wrote:

Mabye you can use xml:parse. It returns a dom4j Document in a 
variable. You
can use this variable to manipulate the document.

http://jakarta.apache.org/commons/jelly/libs/xml/tags.html#xml:parse

_Maybe_ use can use xml:parse in the body of the other xml-tags:

e.g.

xml:expr xpath=/bla/bli/[EMAIL PROTECTED]
  xml:parse xml=/path/fool.xml/
/xml:expr


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: AW: Jelly question

2003-07-09 Thread Brian Murray
I've heard this approach mentioned before, but I still don't get it probably
due to huge gaps in my Jelly knowledge.  Is there an example of using a Java
object in this way that I could look at?

Thanks,
Brian

-Original Message-
From: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 8:48 AM
To: Maven Users List
Subject: Re: AW: Jelly question


On Wed, 2003-07-09 at 09:40, Rademacher Tobias wrote:
 Hi Vincent,
 
 thx. Dammed! I guess I'm bound to much to Jelly when talking about 
 Maven Plugins. You are definitly right. If something is getting to 
 hard to achive in Jelly
 - use a POJO approach an wrap
 it into a Jelly or an Ant Task. 

Jelly can use straight beans, I would avoid AntTasks at all costs given
potential ClassLoader woes.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: Jelly question

2003-07-09 Thread dion
Write a plain old java object (POJO) that does the work and wrap it in a 
task for Ant. Jelly can use POJOs directly.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Rademacher Tobias [EMAIL PROTECTED] wrote on 09/07/2003 11:54:32 
PM:

 Jason,
 
  
  Jelly can use straight beans, I would avoid AntTasks at all 
  costs given
  potential ClassLoader woes.
  
 
 Just a example:
 
 Ant is currently missing a task that builds RAR assemblies. What would 
you
 suggest in this case?
 Writting a Jelly Tag lib that build a RAR file or write an AntTask?
 
 And beside  all ClassLoader trouble (seen in so many places these days)
 shouldn't we reinforce reusabilty?
 
 Bye + Thx
 Toby
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]