Skip to content

Commit

Permalink
Set encoding as false to treat content as binary for gulp.src
Browse files Browse the repository at this point in the history
- Required as part of Gulp 4 -> 5 migration

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
  • Loading branch information
rgrunber committed Dec 3, 2024
1 parent 971a360 commit 9ac514d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const server_dir = '../lemminx';

gulp.task('build_server', function (done) {
cp.execSync(mvnw() + " clean verify -DskipTests", { cwd: server_dir, stdio: [0, 1, 2] });
gulp.src(server_dir + '/org.eclipse.lemminx/target/org.eclipse.lemminx-uber.jar')
gulp.src(server_dir + '/org.eclipse.lemminx/target/org.eclipse.lemminx-uber.jar', { encoding: false })
.pipe(gulp.dest('./server'));
done();
});

gulp.task('build_server_with_binary', function (done) {
cp.execSync(mvnw() + " clean verify -DskipTests -Dnative", { cwd: server_dir, stdio: [0, 1, 2] });
gulp.src([server_dir + '/org.eclipse.lemminx/target/org.eclipse.lemminx-uber.jar', server_dir + '/org.eclipse.lemminx/target/lemminx-*'])
gulp.src([server_dir + '/org.eclipse.lemminx/target/org.eclipse.lemminx-uber.jar', server_dir + '/org.eclipse.lemminx/target/lemminx-*'], { encoding: false })
.pipe(gulp.dest('./server'))
.on('end', function () {
glob.Glob('./server/lemminx-*.txt', (_er, txtfiles) => {
Expand Down

0 comments on commit 9ac514d

Please sign in to comment.