Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ImportProperties.java |
— | — | @@ -21,6 +21,10 @@ |
22 | 22 | baseTasks = new String[] {"ImportProperties", "ImportConcepts", "BuildStatistics", "BuildConceptInfo", }; |
23 | 23 | } |
24 | 24 | |
| 25 | + protected boolean getPurgeData() { |
| 26 | + return super.getPurgeData() && !args.isSet("attach"); |
| 27 | + } |
| 28 | + |
25 | 29 | @Override |
26 | 30 | protected void createStores(WikiWordStoreFactory<? extends LocalConceptStoreBuilder> factory) throws IOException, PersistenceException { |
27 | 31 | super.createStores(factory); |
Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ImportApp.java |
— | — | @@ -215,6 +215,9 @@ |
216 | 216 | p.println("### performing FRESH import!"); |
217 | 217 | } |
218 | 218 | } |
| 219 | + else if (operation==Operation.ATTACH) { |
| 220 | + p.println("### previous run complete, performing ATTACHING import!"); |
| 221 | + } |
219 | 222 | else { |
220 | 223 | p.println("### the last run FINISHED: "+root.task); |
221 | 224 | operation = Operation.FRESH; |