File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -574,15 +574,15 @@ public int compare(File f1, File f2) {
574
574
public class FileExtractors {
575
575
FileExtractor defaultExtractor ;
576
576
Map <String , FileExtractor > customExtractors = new LinkedHashMap <>();
577
-
577
+
578
578
FileExtractors (FileExtractor defaultExtractor ) {
579
579
this .defaultExtractor = defaultExtractor ;
580
580
}
581
-
581
+
582
582
public FileExtractor forFile (Path f ) {
583
583
return customExtractors .getOrDefault (FileUtil .extension (f ), defaultExtractor );
584
584
}
585
-
585
+
586
586
public FileType fileType (Path f ) {
587
587
return forFile (f ).getFileType (f .toFile ());
588
588
}
@@ -630,7 +630,7 @@ private void extractSource() throws IOException {
630
630
631
631
// extract remaining files
632
632
extractFiles (
633
- filesToExtract , extractedFiles , extractors ,
633
+ filesToExtract , extractedFiles , extractors ,
634
634
f -> !(hasTypeScriptFiles && isFileDerivedFromTypeScriptFile (f , extractedFiles )));
635
635
}
636
636
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public String toString() {
236
236
237
237
/** The default character encoding to use for parsing source files. */
238
238
private String defaultEncoding ;
239
-
239
+
240
240
private VirtualSourceRoot virtualSourceRoot ;
241
241
242
242
public ExtractorConfig (boolean experimental ) {
@@ -460,7 +460,7 @@ public ExtractorConfig withDefaultEncoding(String defaultEncoding) {
460
460
public VirtualSourceRoot getVirtualSourceRoot () {
461
461
return virtualSourceRoot ;
462
462
}
463
-
463
+
464
464
public ExtractorConfig withVirtualSourceRoot (VirtualSourceRoot virtualSourceRoot ) {
465
465
ExtractorConfig res = new ExtractorConfig (this );
466
466
res .virtualSourceRoot = virtualSourceRoot ;
Original file line number Diff line number Diff line change 5
5
public class VirtualSourceRoot {
6
6
private Path sourceRoot ;
7
7
private Path virtualSourceRoot ;
8
-
8
+
9
9
public static final VirtualSourceRoot none = new VirtualSourceRoot (null , null );
10
10
11
11
public VirtualSourceRoot (Path sourceRoot , Path virtualSourceRoot ) {
@@ -33,7 +33,7 @@ public Path getSourceRoot() {
33
33
public Path getVirtualSourceRoot () {
34
34
return virtualSourceRoot ;
35
35
}
36
-
36
+
37
37
private static Path translate (Path oldRoot , Path newRoot , Path file ) {
38
38
if (oldRoot == null || newRoot == null ) return null ;
39
39
Path relative = oldRoot .relativize (file );
You can’t perform that action at this time.
0 commit comments