Project

General

Profile

« Previous | Next » 

Revision 44734

More code cleaning + datasets enabled

View differences:

ConfigurationFactory.java
5 5
import eu.dnetlib.data.search.utils.vocabulary.IndexVocabulary;
6 6
import eu.dnetlib.data.search.utils.vocabulary.LocalVocabulary;
7 7
import eu.dnetlib.data.search.utils.vocabulary.Vocabulary;
8
import org.apache.commons.io.FileUtils;
9 8
import org.apache.commons.io.IOUtils;
10 9
import org.apache.log4j.Logger;
11 10
import org.springframework.core.io.Resource;
......
14 13
import org.xml.sax.InputSource;
15 14

  
16 15
import javax.xml.xpath.*;
17
import java.io.*;
16
import java.io.ByteArrayOutputStream;
17
import java.io.IOException;
18
import java.io.InputStream;
19
import java.io.StringReader;
18 20
import java.net.URISyntaxException;
19 21
import java.util.ArrayList;
20 22
import java.util.List;
......
67 69
		XPathFactory factory = XPathFactory.newInstance();
68 70
		XPath xPath = factory.newXPath();
69 71
		  
70
		try {
72
		/*try {
71 73
			//clean vocabularies folder
72 74
			FileUtils.deleteDirectory(new File(vocabulariesPath));
73 75
			
......
76 78
		
77 79
		} finally {		
78 80
			new File(vocabulariesPath).mkdir();
79
		}
81
		}*/
80 82
		
81 83
		try {
82 84
			readLocales(xPath, configuration);

Also available in: Unified diff