jelly tag problem

2004-01-02 Thread Nathan Coast
Hi,

I've written a tag class to use within a plugin.  I copied the code from 
the ChangeLog plugin as a starting point.  I guess I've missed some 
crucial step as when I execute the plugin I get this error:

java.lang.IllegalArgumentException: Property 'output' has no write method
at 
org.apache.commons.beanutils.ConvertingWrapDynaBean.set(ConvertingWrapDynaBean.java:116)
at 
org.apache.commons.jelly.DynaBeanTagSupport.setAttribute(DynaBeanTagSupport.java:99)
at 
org.apache.commons.jelly.impl.DynamicBeanTag.setAttribute(DynamicBeanTag.java:178)
at 
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:142)
at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
..
..

The class com.codeczar.maven.foldertree.FolderTree has the same 
set/getOutput methods as the ChangeLog plugin.

from plugin.jelly

define:taglib uri=foldertree
  define:jellybean
name=foldertree
className=com.codeczar.maven.foldertree.FolderTree
method=doExecute
/
/define:taglib
goal name=ft:generate
property name=maven.foldertree.output.dir 
value=${maven.docs.dest}/foldertree/
mkdir dir=${maven.foldertree.output.dir}/

foldertree:foldertree
  basedir=${basedir}
  output=${maven.foldertree.output.dir}/project.js
  outputEncoding=${maven.docs.outputencoding}/
/goal
Any ideas what I've done wrong?

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


Re: Fwd: Re: Jelly if problem

2003-08-27 Thread Nelson Arapé
On Monday 25 August 2003 23:56, Alwyn Schoeman wrote:
 Hi,

 Could you please paste his message into a new mail.

 People who do not use outlook cannot read outlook attached messages.

I do not use Outlook, my configuration is Suse Linux 8.2 using KMail 1.5.3 on 
KDE 3.1.3. In the future i will forward or reply in line instead of 
attachment.

The email already was posted by Rafal, but anyway here it goes:

ubject:
Re: Jelly if problem
From:
Evan Koffler [EMAIL PROTECTED]
Date:
Mon, 25 Aug 2003 12:22:18 -0500
To:
[EMAIL PROTECTED]

I'm not much of an expert so I expect someone else more knowledgable to
respond (which is why this is going directly to you).

Short answer: use _ instead of . in your variable names.

Jelly is interpreting the j:if and looking for object idl, to have
property already which has property generated. Or equivalent to:
idl.getAlready().getGenerated(). Changing the . to _ will make it more
like a Java variable idl_already_generated.

Evan


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



Re: Jelly if problem

2003-08-26 Thread dion
Change
j:set var=idl.already.generated value=false/
to
j:set var=idlAlreadyGenerated value=false/

and
j:if test=${!idlAlreadyGenerated}
  ant:echo message=generating idl bindings/
  !-- idl compiling goes here--
/j:if

should work.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Nelson Arapé [EMAIL PROTECTED] wrote on 26/08/2003 02:35:29 AM:

 Hello
 
 In a maven.xml, I have the following code:
 
j:set var=idl.already.generated value=false/
u:available file=${idl.generated}
  j:set var=idl.already.generated value=true/
/u:available
 
ant:echo message=${idl.already.generated}/
!-- the following line allways prints true--
ant:echo message=${!idl.already.generated}/ 
j:if test=${!idl.already.generated}
  ant:echo message=generating idl bindings/
  !-- idl compiling goes here--
/j:if
 
 The second echo always prints true, so maven always compile my idl's. 
I've 
 tried a lot of severals combinations (ant:available, 
${idl.already.generated 
 == null}, ${idl.already.generated != null}, etc) but I can't make it 
work.
 
 Somebody can help me?
 
 Thanks in advance
 Nelson Arapé
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Fwd: Re: Jelly if problem

2003-08-26 Thread Rafal Krzewski
Alwyn Schoeman wrote:
 Hi,
 
 Could you please paste his message into a new mail.
 
 People who do not use outlook cannot read outlook attached messages.

Mozilla 1.5a shows the attachment withot any problems. Here it goes:

Subject:
Re: Jelly if problem
From:
Evan Koffler [EMAIL PROTECTED]
Date:
Mon, 25 Aug 2003 12:22:18 -0500
To:
[EMAIL PROTECTED]

I'm not much of an expert so I expect someone else more knowledgable to
respond (which is why this is going directly to you).

Short answer: use _ instead of . in your variable names.

Jelly is interpreting the j:if and looking for object idl, to have
property already which has property generated. Or equivalent to:
idl.getAlready().getGenerated(). Changing the . to _ will make it more
like a Java variable idl_already_generated.

Evan


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



Jelly if problem

2003-08-25 Thread Nelson Arapé
Hello

In a maven.xml, I have the following code:

   j:set var=idl.already.generated value=false/
   u:available file=${idl.generated}
 j:set var=idl.already.generated value=true/
   /u:available

   ant:echo message=${idl.already.generated}/
   !-- the following line allways prints true--
   ant:echo message=${!idl.already.generated}/ 
   j:if test=${!idl.already.generated}
 ant:echo message=generating idl bindings/
 !-- idl compiling goes here--
   /j:if

The second echo always prints true, so maven always compile my idl's. I've 
tried a lot of severals combinations (ant:available, ${idl.already.generated 
== null}, ${idl.already.generated != null}, etc) but I can't make it work.

Somebody can help me?

Thanks in advance
Nelson Arapé



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



RE: Jelly if problem

2003-08-25 Thread O'Fallon, Paul (MAN-Corporate)
I'll bet that your false and true j:set's are just setting the
variable to the string false or the string true.  Try testing for that
(i.e. j:if test=${idl.already.generated == 'false'})

HTH,
Paul

 -Original Message-
 From: Nelson Arapé [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 25, 2003 12:35 PM
 To: [EMAIL PROTECTED]
 Subject: Jelly if problem
 
 
 Hello
 
 In a maven.xml, I have the following code:
 
j:set var=idl.already.generated value=false/
u:available file=${idl.generated}
  j:set var=idl.already.generated value=true/
/u:available
 
ant:echo message=${idl.already.generated}/
!-- the following line allways prints true--
ant:echo message=${!idl.already.generated}/ 
j:if test=${!idl.already.generated}
  ant:echo message=generating idl bindings/
  !-- idl compiling goes here--
/j:if
 
 The second echo always prints true, so maven always compile 
 my idl's. I've 
 tried a lot of severals combinations (ant:available, 
 ${idl.already.generated 
 == null}, ${idl.already.generated != null}, etc) but I can't 
 make it work.
 
 Somebody can help me?
 
 Thanks in advance
 Nelson Arapé
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Jelly if problem

2003-08-25 Thread Nelson Arapé
On Monday 25 August 2003 13:19, O'Fallon, Paul (MAN-Corporate) wrote:
 I'll bet that your false and true j:set's are just setting the
 variable to the string false or the string true.  Try testing for that
 (i.e. j:if test=${idl.already.generated == 'false'})

Already done, dosen't work, but thanks

 HTH,
 Paul

  -Original Message-
  From: Nelson Arapé [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 25, 2003 12:35 PM
  To: [EMAIL PROTECTED]
  Subject: Jelly if problem
 
 
  Hello
 
  In a maven.xml, I have the following code:
 
 j:set var=idl.already.generated value=false/
 u:available file=${idl.generated}
   j:set var=idl.already.generated value=true/
 /u:available
 
 ant:echo message=${idl.already.generated}/
 !-- the following line allways prints true--
 ant:echo message=${!idl.already.generated}/
 j:if test=${!idl.already.generated}
   ant:echo message=generating idl bindings/
   !-- idl compiling goes here--
 /j:if
 
  The second echo always prints true, so maven always compile
  my idl's. I've
  tried a lot of severals combinations (ant:available,
  ${idl.already.generated
  == null}, ${idl.already.generated != null}, etc) but I can't
  make it work.
 
  Somebody can help me?
 
  Thanks in advance
  Nelson Arapé
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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


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



Fwd: Re: Jelly if problem

2003-08-25 Thread Nelson Arapé
Here is the answer that Evan gave privately, and I forwaring here with his 
permission.  His answer fixed my problem.

Thanks again Evan

Nelson Arapé
---BeginMessage---
I'm not much of an expert so I expect someone else more knowledgable to 
respond (which is why this is going directly to you).

Short answer: use _ instead of . in your variable names.

Jelly is interpreting the j:if and looking for object idl, to have 
property already which has property generated. Or equivalent to: 
idl.getAlready().getGenerated(). Changing the . to _ will make it more 
like a Java variable idl_already_generated.

Evan



Nelson Arapé wrote:

Hello

In a maven.xml, I have the following code:

  j:set var=idl.already.generated value=false/
  u:available file=${idl.generated}
j:set var=idl.already.generated value=true/
  /u:available
  ant:echo message=${idl.already.generated}/
  !-- the following line allways prints true--
  ant:echo message=${!idl.already.generated}/ 
  j:if test=${!idl.already.generated}
ant:echo message=generating idl bindings/
!-- idl compiling goes here--
  /j:if

The second echo always prints true, so maven always compile my idl's. I've 
tried a lot of severals combinations (ant:available, ${idl.already.generated 
== null}, ${idl.already.generated != null}, etc) but I can't make it work.

Somebody can help me?

Thanks in advance
Nelson Arapé


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


 





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