Skip to content

Commit 1f67839

Browse files
committed
Update gulpfile after move to gulp 4.0.0
Signed-off-by: Fred Bricon <fbricon@gmail.com>
1 parent d3c0e24 commit 1f67839

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

gulpfile.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,22 @@ gulp.task('tslint', () => {
1212
.pipe(gulp_tslint.report());
1313
});
1414

15-
gulp.task('download_server', ()=>
16-
{
15+
gulp.task('download_server', function(done) {
1716
download("http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz")
1817
.pipe(decompress())
19-
.pipe(gulp.dest('./server'))
18+
.pipe(gulp.dest('./server'));
19+
done();
2020
});
2121

22-
gulp.task('build_server', ()=>
23-
{
22+
gulp.task('build_server', function(done) {
2423
cp.execSync(mvnw()+ ' -Pserver-distro clean package', {cwd:server_dir, stdio:[0,1,2]} );
2524
gulp.src(server_dir + '/org.eclipse.jdt.ls.product/distro/*.tar.gz')
2625
.pipe(decompress())
27-
.pipe(gulp.dest('./server'))
26+
.pipe(gulp.dest('./server'));
27+
done();
2828
});
2929

30-
gulp.task('dev_server', ()=>
31-
{
30+
gulp.task('dev_server', function(done) {
3231
let command = mvnw() +' -Pserver-distro,fast -o clean package ';
3332
if(isLinux()){
3433
command +='-Denvironment.os=linux -Denvironment.ws=gtk -Denvironment.arch=x86_64';
@@ -44,10 +43,12 @@ gulp.task('dev_server', ()=>
4443
gulp.src(server_dir +'/org.eclipse.jdt.ls.product/distro/*.tar.gz')
4544
.pipe(decompress())
4645
.pipe(gulp.dest('./server'))
46+
done();
4747
});
4848

49-
gulp.task('watch_server',()=>{
49+
gulp.task('watch_server',function(done) {
5050
gulp.watch(server_dir+'/org.eclipse.jdt.ls.core/**/*.java',['dev_server']);
51+
done();
5152
});
5253

5354
function isWin() {

0 commit comments

Comments
 (0)