Page 1 of 1

Crontab_xml_importer

PostPosted:Mon Sep 23, 2013 3:48 pm
by vincentk222
Hi all,
I'm trying to test this impoter : http://wiki.openkm.com/index.php/Crontab_xml_importer

I do not get any result :(
Where can I found log (I alreday search in log)
Does anyone have more detail about to create the jar file

Thanks
Vincent

Re: Crontab_xml_importer

PostPosted:Tue Sep 24, 2013 5:56 pm
by jllort
If appers something should be shown in catalina.log, take a look if appears some error in log. The error probably will not be shown from crontab (e.printStackTrace();) into catalina.log, I think internally crontab task is an independant thread and error are not propagated.

Try first with something like
Code: Select all
public static String cronTask(String[] systemToken) {
   System.out.println("starting");

Re: Crontab_xml_importer

PostPosted:Sun Oct 06, 2013 7:48 am
by vincentk222
I'm bad with java.
I used the PHP version and I get it working.

Re: Crontab_xml_importer

PostPosted:Mon Oct 07, 2013 7:10 am
by jllort
Than seems good. You're wellcome, If you want to share with community your code I can add in our public documentation and can be useful to other users.