source: sandbox/expresso-solr/imapCrawler/SRC/JCrawlerForIMAP (cópia funcional)/src/pkg/crawler/main/Main.java @ 8056

Revision 8056, 763 bytes checked in by gustavo, 11 years ago (diff)

Ticket #000 - Commit contendo o expresso com solr funcionando corretamente

Line 
1package pkg.crawler.main;
2
3import pkg.crawler.data.conn.Crawler;
4
5public class Main {
6
7        /**
8         * @param args
9         * Deverão ser 4 argumentos:
10         */
11        public static void main(String[] args) {
12               
13                if (args == null || args.length != 3){
14                        System.out.println("Uso:\n" +
15                                        "java -jar crawler.jar [imap_host] " +
16                                        "[imap_admin_password] " +
17                                        "[http_solr_host_address] ");
18                        System.exit(0);
19                }
20               
21                //O endereço que está instalado o Expresso Ex: "127.1.1.1"
22                String host = args[0];
23                //Senha do usuário 'expresso-admin' Ex: "admin123"
24                String password = args[1];
25                //Endereço do servidor do Solr Ex: "http://127.1.1.1:8983/solr/"
26                String hostSolr = args[2];
27               
28                Crawler crawler = new Crawler(host, password, hostSolr);
29               
30                crawler.run();
31               
32               
33        }
34
35}
Note: See TracBrowser for help on using the repository browser.