Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scidetect
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cyril Labbe
scidetect
Commits
aaad8a5f
Commit
aaad8a5f
authored
Mar 02, 2015
by
Tien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare for lightweight version
parent
deebc2b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/fr/imag/forge/Scidetect/Checker/Reader.java
src/fr/imag/forge/Scidetect/Checker/Reader.java
+2
-2
No files found.
src/fr/imag/forge/Scidetect/Checker/Reader.java
View file @
aaad8a5f
...
@@ -69,7 +69,7 @@ public class Reader {
...
@@ -69,7 +69,7 @@ public class Reader {
for
(
int
j
=
0
;
j
<
listOfFile
.
length
;
j
++)
{
for
(
int
j
=
0
;
j
<
listOfFile
.
length
;
j
++)
{
if
(
listOfFile
[
j
].
isDirectory
())
{
if
(
listOfFile
[
j
].
isDirectory
())
{
readsamples
(
listOfFile
[
j
].
getPath
());
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
// find if there is already index for it
String
indexname
=
"INDEX-"
String
indexname
=
"INDEX-"
+
listOfFile
[
j
].
getName
().
substring
(
0
,
+
listOfFile
[
j
].
getName
().
substring
(
0
,
...
@@ -78,7 +78,7 @@ public class Reader {
...
@@ -78,7 +78,7 @@ public class Reader {
if
(
Arrays
.
asList
(
listOfFile
).
toString
().
contains
(
indexname
))
{
if
(
Arrays
.
asList
(
listOfFile
).
toString
().
contains
(
indexname
))
{
// System.out.println("lets read from index file");
// System.out.println("lets read from index file");
readindexfile
(
listOfFile
[
j
].
getParent
()
+
"/"
+
indexname
);
readindexfile
(
listOfFile
[
j
].
getParent
()
+
"/"
+
indexname
);
}
else
{
}
else
if
(
listOfFile
[
j
].
getName
().
endsWith
(
".pdf"
))
{
pdfextractor
a
=
new
pdfextractor
();
pdfextractor
a
=
new
pdfextractor
();
String
content
=
a
.
pdfextract
(
listOfFile
[
j
]);
String
content
=
a
.
pdfextract
(
listOfFile
[
j
]);
Indexer
b
=
new
Indexer
();
Indexer
b
=
new
Indexer
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment