forked from Verdent/helidon-vs-code-extension-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
29 lines (24 loc) · 1.17 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const gulp = require('gulp');
const rename = require('gulp-rename');
const cp = require('child_process');
const helidonServerExtDir = '../helidon-build-tools/lsp4helidon/ls-extension'
const helidonServerExt = 'ls-extension';
const helidonJDTExtDir = '../helidon-build-tools/lsp4helidon/jdt-extension';
const helidonExtension = 'jdt-extension-core';
gulp.task('buildLsServerExt', (done) => {
cp.execSync('mvn clean verify -DskipTests', { cwd: helidonServerExtDir , stdio: 'inherit' });
gulp.src(helidonServerExtDir + '/target/' + helidonServerExt + '-!(*sources).jar')
.pipe(rename(helidonServerExt + '.jar'))
.pipe(gulp.dest('./server'));
gulp.src(helidonServerExtDir + '/target/lib/*.jar')
.pipe(gulp.dest('./server'));
done();
});
gulp.task('buildJdtExtension', (done) => {
cp.execSync('mvn -pl "' + helidonExtension + '" clean verify -DskipTests', { cwd: helidonJDTExtDir, stdio: 'inherit' });
gulp.src(helidonJDTExtDir + '/' + helidonExtension + '/target/' + helidonExtension + '-!(*sources).jar')
.pipe(rename(helidonExtension + '.jar'))
.pipe(gulp.dest('./jars'));
done();
});
gulp.task('build', gulp.series('buildLsServerExt', 'buildJdtExtension'));