Skip to content

Commit 8b7a874

Browse files
authored
chore: Exclude unrequired files in the build script (#47)
1 parent 6ad6103 commit 8b7a874

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cmd/gulpfile.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
14
const gulp = require('gulp');
25
const cp = require('child_process');
36
const path = require('path');
@@ -19,8 +22,14 @@ gulp.task('clean', (done) => {
1922

2023
gulp.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

Comments
 (0)