Mercurial Hosting > luan
comparison src/luan/host/Backup.java @ 1187:83c8a5a47f70
fixes for luanhost
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 22 Feb 2018 18:38:45 -0700 |
parents | 94cf2576a922 |
children | d41997776788 |
comparison
equal
deleted
inserted
replaced
1186:ef8cd42e23d5 | 1187:83c8a5a47f70 |
---|---|
67 WebHandler.initLuan( luan, from.toString(), from.getName() ); | 67 WebHandler.initLuan( luan, from.toString(), from.getName() ); |
68 PackageLuan.load(luan,"site:/init.luan"); | 68 PackageLuan.load(luan,"site:/init.luan"); |
69 luceneInstances = (LuanTable)luan.eval(getLucenes); | 69 luceneInstances = (LuanTable)luan.eval(getLucenes); |
70 } | 70 } |
71 } catch(LuanException e) { | 71 } catch(LuanException e) { |
72 throw new RuntimeException(e); | 72 throw new RuntimeException(from.getName(),e); |
73 } | 73 } |
74 for( Map.Entry entry : luceneInstances.rawIterable() ) { | 74 for( Map.Entry entry : luceneInstances.rawIterable() ) { |
75 LuanTable tbl = (LuanTable)entry.getKey(); | 75 LuanTable tbl = (LuanTable)entry.getKey(); |
76 LuceneIndex li = (LuceneIndex)tbl.rawGet("java"); | 76 LuceneIndex li = (LuceneIndex)tbl.rawGet("java"); |
77 SnapshotDeletionPolicy snapshotDeletionPolicy = li.snapshotDeletionPolicy(); | 77 SnapshotDeletionPolicy snapshotDeletionPolicy = li.snapshotDeletionPolicy(); |
104 } | 104 } |
105 } | 105 } |
106 | 106 |
107 public static void main(String[] args) throws Exception { | 107 public static void main(String[] args) throws Exception { |
108 Log4j.initForConsole(); | 108 Log4j.initForConsole(); |
109 WebHandler.allowJavaFileName = args[2]; | |
109 backup( new File(args[0]), new File(args[1]) ); | 110 backup( new File(args[0]), new File(args[1]) ); |
110 System.exit(0); | 111 System.exit(0); |
111 } | 112 } |
112 } | 113 } |