Project

General

Profile

« Previous | Next » 

Revision 47702

make bulkResourceImporter aware that we might not need to register classpath resources again

View differences:

PersistentExistDatabase.java
10 10
import java.io.StringReader;
11 11
import java.io.StringWriter;
12 12

  
13
import eu.dnetlib.enabling.is.store.BulkResourceImporter;
13 14
import org.apache.commons.io.IOUtils;
14 15
import org.apache.commons.logging.Log;
15 16
import org.apache.commons.logging.LogFactory;
16 17
import org.springframework.beans.factory.annotation.Required;
17 18

  
18
//import eu.dnetlib.enabling.tools.BulkResourceImporter;
19

  
20 19
/**
21 20
 * Persistent exist.
22 21
 *
......
50 49
	/**
51 50
	 * bulk importer.
52 51
	 */
53
	//private BulkResourceImporter bulkImporter;
52
	private BulkResourceImporter bulkImporter;
54 53

  
55 54
	/**
56 55
	 * exist config file.
......
73 72
		dbDirectory = new File(dbRootPath);
74 73

  
75 74
		if (dbDirectory.exists()) {
76
			//bulkImporter.setEnabled(false);
75
			getBulkImporter().setEnabled(false);
77 76
			existConfigFile = new File(dbDirectory, "conf.xml");
78 77
			enableJava(existConfigFile, isXQueryJavaEnabled());
79 78
			setConfigFile(existConfigFile.getAbsolutePath());
......
170 169
		this.configTemplate = configTemplate;
171 170
	}
172 171

  
173
	/*
174 172
	public BulkResourceImporter getBulkImporter() {
175 173
		return bulkImporter;
176 174
	}
......
179 177
	public void setBulkImporter(final BulkResourceImporter bulkImporter) {
180 178
		this.bulkImporter = bulkImporter;
181 179
	}
182
	*/
183 180

  
184 181
	public File getExistConfigFile() {
185 182
		return existConfigFile;

Also available in: Unified diff