Re: Call of jelly invokeStatic in maven.xml

2004-04-26 Thread dion_gillard
Is ch.netcetera.golo.IDgen in one of the jars in your project.xml?
--
dIon Gillard, Multitask Consulting



Martin Jaeger [EMAIL PROTECTED] wrote on 26/04/2004 09:43:07 PM:

 Hi together
 
 After my project is compiled and packaged I want to deploy it to our
 server. For this I have to get an id from a static helper method in the
 code of the project and insert it to a textfile. This did not work (see
 excerpt from maven.xml and exception at the bottom).
 
 
 I think the reason is that the classpath of the invokeStatic is wrong. 
Has
 someone an idea how I can set the classpath, or how else I could call a
 static method and use the returnvalue in Maven?
 
 Thanks a lot
 Martin
 
 
 
 I tried to do this in my maven.xml
 goal name=vega:getSession
j:invokeStatic var=id method=getID
 className=ch.netcetera.golo.IDgen/
echo message=ID = ${id}/
 /goal
 
 
 The result was:
 
  Could not load class: ch.netcetera.golo.IDgen. Reason:
 java.lang.ClassNotFoundException: ch.netcetera.golo.IDgen
 at com.werken.werkz.Goal.fire(Goal.java:646)
 at com.werken.werkz.Goal.attain(Goal.java:575)
 at 
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
 at
 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531)
 at
 org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
 at org.apache.maven.cli.App.doMain(App.java:466)
 at org.apache.maven.cli.App.main(App.java:1117)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.
 invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)
 
 -
 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: Call of jelly invokeStatic in maven.xml

2004-04-26 Thread Martin Jaeger
Hi

No, it is in my newly compiled classes. I have to compile this class
first and then use it. Is there a way to do this?

Would it work if it is one of the jars in the project.xml?


Thank you
Martin


On Tue, 27 Apr 2004 [EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 To: Maven Users List [EMAIL PROTECTED]
 Subject: Re: Call of jelly invokeStatic in maven.xml
 Date: Tue, 27 Apr 2004 09:16:44 +1000
 X-mailer: Lotus Notes Release 6.5 September 26, 2003

 Is ch.netcetera.golo.IDgen in one of the jars in your project.xml?
 --
 dIon Gillard, Multitask Consulting



 Martin Jaeger [EMAIL PROTECTED] wrote on 26/04/2004 09:43:07 PM:

  Hi together
 
  After my project is compiled and packaged I want to deploy it to our
  server. For this I have to get an id from a static helper method in the
  code of the project and insert it to a textfile. This did not work (see
  excerpt from maven.xml and exception at the bottom).
 
 
  I think the reason is that the classpath of the invokeStatic is wrong.
 Has
  someone an idea how I can set the classpath, or how else I could call a
  static method and use the returnvalue in Maven?
 
  Thanks a lot
  Martin
 
 
 
  I tried to do this in my maven.xml
  goal name=vega:getSession
 j:invokeStatic var=id method=getID
  className=ch.netcetera.golo.IDgen/
 echo message=ID = ${id}/
  /goal
 
 
  The result was:
 
   Could not load class: ch.netcetera.golo.IDgen. Reason:
  java.lang.ClassNotFoundException: ch.netcetera.golo.IDgen
  at com.werken.werkz.Goal.fire(Goal.java:646)
  at com.werken.werkz.Goal.attain(Goal.java:575)
  at
 com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
  at
 
 org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531)
  at
  org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
  at org.apache.maven.cli.App.doMain(App.java:466)
  at org.apache.maven.cli.App.main(App.java:1117)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.
  invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at com.werken.forehead.Forehead.run(Forehead.java:551)
  at com.werken.forehead.Forehead.main(Forehead.java:581)
 
  -
  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]