Skip to content

Commit

Permalink
Set encoding as false for gulp.src to treat content as binary.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed May 3, 2024
1 parent c225c2f commit 9c49da1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,30 @@ const quteExtension = 'com.redhat.qute.jdt';

gulp.task('buildServer', (done) => {
cp.execSync(mvnw() + ' clean verify -B -DskipTests', { cwd: quarkusServerExtDir , stdio: 'inherit' });
gulp.src(quarkusServerExtDir + '/target/' + quarkusServerExt + '-!(*sources).jar')
gulp.src(quarkusServerExtDir + '/target/' + quarkusServerExt + '-!(*sources).jar', { encoding: false })
.pipe(rename(quarkusServerExt + '.jar'))
.pipe(gulp.dest('./server'));
done();
});

gulp.task('buildExtension', (done) => {
cp.execSync(mvnw() + ' -pl "' + quarkusExtension + '" clean verify -B -DskipTests', { cwd: quarkusExtensionDir, stdio: 'inherit' });
gulp.src(quarkusExtensionDir + '/' + quarkusExtension + '/target/' + quarkusExtension + '-!(*sources).jar')
gulp.src(quarkusExtensionDir + '/' + quarkusExtension + '/target/' + quarkusExtension + '-!(*sources).jar', { encoding: false })
.pipe(rename(quarkusExtension + '.jar'))
.pipe(gulp.dest('./jars'));
done();
});

gulp.task('buildQuteServer', (done) => {
cp.execSync(mvnw() + ' clean verify -B -DskipTests', { cwd: quteServerDir , stdio: 'inherit' });
gulp.src(quteServerDir + '/target/' + quteServer)
gulp.src(quteServerDir + '/target/' + quteServer, { encoding: false })
.pipe(gulp.dest('./server'));
done();
});

gulp.task('buildQuteExtension', (done) => {
cp.execSync(mvnw() + ' -pl "' + quteExtension + '" clean verify -B -DskipTests', { cwd: quteExtensionDir, stdio: 'inherit' });
gulp.src(quteExtensionDir + '/' + quteExtension + '/target/' + quteExtension + '-!(*sources).jar')
gulp.src(quteExtensionDir + '/' + quteExtension + '/target/' + quteExtension + '-!(*sources).jar', { encoding: false })
.pipe(rename(quteExtension + '.jar'))
.pipe(gulp.dest('./jars'));
done();
Expand Down

0 comments on commit 9c49da1

Please sign in to comment.