r52492 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52491‎ | r52492 | r52493 >
Date:14:20, 27 June 2009
Author:daniel
Status:deferred
Tags:
Comment:
don't purge concept when attaching properties\!
Modified paths:
  • /trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ImportApp.java (modified) (history)
  • /trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ImportProperties.java (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ImportProperties.java
@@ -21,6 +21,10 @@
2222 baseTasks = new String[] {"ImportProperties", "ImportConcepts", "BuildStatistics", "BuildConceptInfo", };
2323 }
2424
 25+ protected boolean getPurgeData() {
 26+ return super.getPurgeData() && !args.isSet("attach");
 27+ }
 28+
2529 @Override
2630 protected void createStores(WikiWordStoreFactory<? extends LocalConceptStoreBuilder> factory) throws IOException, PersistenceException {
2731 super.createStores(factory);
Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ImportApp.java
@@ -215,6 +215,9 @@
216216 p.println("### performing FRESH import!");
217217 }
218218 }
 219+ else if (operation==Operation.ATTACH) {
 220+ p.println("### previous run complete, performing ATTACHING import!");
 221+ }
219222 else {
220223 p.println("### the last run FINISHED: "+root.task);
221224 operation = Operation.FRESH;

Status & tagging log