18/11/19: maintenance de la plate-forme - Interruptions du service gricad-gitlab et perturbations possibles tout au long de la journée.

Commit aaad8a5f authored by Tien's avatar Tien

Prepare for lightweight version

parent deebc2b7
......@@ -69,7 +69,7 @@ public class Reader {
for (int j = 0; j < listOfFile.length; j++) {
if (listOfFile[j].isDirectory()) {
readsamples(listOfFile[j].getPath());
} else if (listOfFile[j].getName().endsWith(".pdf")) {
} else if (listOfFile[j].getName().endsWith(".pdf") || listOfFile[j].getName().endsWith(".txt") && !listOfFile[j].getName().startsWith("INDEX-")) {
// find if there is already index for it
String indexname = "INDEX-"
+ listOfFile[j].getName().substring(0,
......@@ -78,7 +78,7 @@ public class Reader {
if (Arrays.asList(listOfFile).toString().contains(indexname)) {
// System.out.println("lets read from index file");
readindexfile(listOfFile[j].getParent() + "/" + indexname);
} else {
} else if (listOfFile[j].getName().endsWith(".pdf")) {
pdfextractor a = new pdfextractor();
String content = a.pdfextract(listOfFile[j]);
Indexer b = new Indexer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment