Could be not a script problem at all.
If you test the scheduler via triggering, you need to unschedule, then
reschedule, then trigger the job. Don't ask me why but it worked for me.
-----Ursprüngliche Nachricht-----
Von: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Im Auftrag von
Eugen Colesnicov
Gesendet: Sonntag, 24. Oktober 2010 17:14
An: users(a)xwiki.org
Betreff: Re: [xwiki-users] Using Scheduler issues (groovy questions)
Paul Libbrecht wrote:
On 24 oct. 2010, at 13:54, Sergiu Dumitriu wrote:
call the web page from groovy
new java.net.URL("blablalba").getContent()
Thanks beforehand!
Eugen
Yes, but note that the URL will be fetched without any session
information, so if the requested page is private (not visible for
guests), it won't work.
or call
http://user:password@host:port/xwiki/bin/view/Space/Name
Paul, can you give exactly example? What I should write in a scheduler field
- "Job script"?
Because of I tried different variants - but without results.
Also, I rewrited my original code from velocity to groovy. I tested my
groovy rewrited code in a another xwiki page - all is working fine. But when
I putted this groovy code to the scheduler - no any actions. Looks like,
that scheduler don't work at all, but standart xwiki watchlists - working
... I cannot understand nothing. Maybe somebody can help me. I attached my
groovy code (as I said - from another xwiki page - this code working fine).
http://xwiki.475771.n2.nabble.com/file/n5667864/groovy_code.txt
groovy_code.txt
Also, my original question (how need to call velocity code from groovy code
in a scheduler) also is interesting for me.
Thanks beforehand
Eugen Colesnicov
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Using-Scheduler-issues-groovy-questions-tp
5666438p5667864.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users