File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,17 @@ public AutoBuild() {
231
231
Env .systemEnv ()
232
232
.getInt (
233
233
"LGTM_INDEX_TYPESCRIPT_INSTALL_DEPS_TIMEOUT" , INSTALL_DEPENDENCIES_DEFAULT_TIMEOUT );
234
- this .virtualSourceRoot = new VirtualSourceRoot ( LGTM_SRC , toRealPath ( Paths . get ( EnvironmentVariables . getScratchDir ())) );
234
+ this .virtualSourceRoot = makeVirtualSourceRoot ( );
235
235
setupFileTypes ();
236
236
setupXmlMode ();
237
237
setupMatchers ();
238
238
this .state = new ExtractorState ();
239
239
}
240
240
241
+ protected VirtualSourceRoot makeVirtualSourceRoot () {
242
+ return new VirtualSourceRoot (LGTM_SRC , toRealPath (Paths .get (EnvironmentVariables .getScratchDir ())));
243
+ }
244
+
241
245
private String getEnvVar (String envVarName ) {
242
246
return getEnvVar (envVarName , null );
243
247
}
Original file line number Diff line number Diff line change 28
28
import com .semmle .js .extractor .ExtractorState ;
29
29
import com .semmle .js .extractor .FileExtractor ;
30
30
import com .semmle .js .extractor .FileExtractor .FileType ;
31
+ import com .semmle .js .extractor .VirtualSourceRoot ;
31
32
import com .semmle .util .data .StringUtil ;
32
33
import com .semmle .util .exception .UserError ;
33
34
import com .semmle .util .files .FileUtil ;
@@ -137,6 +138,11 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
137
138
return DependencyInstallationResult .empty ;
138
139
}
139
140
141
+ @ Override
142
+ protected VirtualSourceRoot makeVirtualSourceRoot () {
143
+ return VirtualSourceRoot .none ; // not used in these tests
144
+ }
145
+
140
146
@ Override
141
147
protected void extractXml () throws IOException {
142
148
Files .walkFileTree (
You can’t perform that action at this time.
0 commit comments