1+ // Copyright (c) Microsoft Corporation. All rights reserved.
2+ // Licensed under the MIT license.
3+
14const gulp = require ( 'gulp' ) ;
25const cp = require ( 'child_process' ) ;
36const path = require ( 'path' ) ;
@@ -19,8 +22,14 @@ gulp.task('clean', (done) => {
1922
2023gulp . task ( 'build-indexer' , ( done ) => {
2124 cp . execSync ( `${ mvnw ( ) } clean verify` , { cwd : rootPath , stdio : [ 0 , 1 , 2 ] } ) ;
22- gulp . src ( path . join ( rootPath , 'com.microsoft.java.lsif.product' , 'target' , 'repository' , '**/*' ) )
23- . pipe ( gulp . dest ( path . join ( rootPath , 'cmd' , 'repository' ) ) ) ;
25+ const srouceRepositoryPath = path . join ( rootPath , 'com.microsoft.java.lsif.product' , 'target' , 'repository' ) ;
26+ const targetRepositoryPath = path . join ( rootPath , 'cmd' , 'repository' ) ;
27+
28+ gulp . src ( path . join ( srouceRepositoryPath , 'config_linux' , '**/*' ) ) . pipe ( gulp . dest ( path . join ( targetRepositoryPath , 'config_linux' ) ) ) ;
29+ gulp . src ( path . join ( srouceRepositoryPath , 'config_mac' , '**/*' ) ) . pipe ( gulp . dest ( path . join ( targetRepositoryPath , 'config_mac' ) ) ) ;
30+ gulp . src ( path . join ( srouceRepositoryPath , 'config_win' , '**/*' ) ) . pipe ( gulp . dest ( path . join ( targetRepositoryPath , 'config_win' ) ) ) ;
31+ gulp . src ( path . join ( srouceRepositoryPath , 'features' , '**/*' ) ) . pipe ( gulp . dest ( path . join ( targetRepositoryPath , 'features' ) ) ) ;
32+ gulp . src ( path . join ( srouceRepositoryPath , 'plugins' , '**/*' ) ) . pipe ( gulp . dest ( path . join ( targetRepositoryPath , 'plugins' ) ) ) ;
2433 done ( ) ;
2534} ) ;
2635
0 commit comments