You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test cases are failing while the dependency of gulp library is upgraded from 4.0.2 to 5.0.0. Primary analysis shown that the project is not detected by the liberty dashboard.
The text was updated successfully, but these errors were encountered:
Checked the encoding of the file that is being downloaded. As per the gulp 5.0.0 documentation, by default the file encodings are treated as utf8. Since the jar is a binary file, this utf8 encoding causes the file to be corrupted. As a solution, tried giving the following option when the file is downloaded using gulp-download2 library {encoding: false}. This solution is not working.
Tried with an alternative library “got” which is used to download files. This solution is working.
gulp.task("downloadLibertyLSJars", async () => {
try{
const libertyLemminxFileStream = fs.createWriteStream('jars/' + libertyLemminxName);
// Use got to download the file as a buffer
const libertyLemminx = await got(libertyLemminxURL, { responseType: 'buffer' });
// Write the binary data to a file
libertyLemminxFileStream.write(libertyLemminx.body);
libertyLemminxFileStream.end();
const libertyLSFileStream = fs.createWriteStream('jars/' + libertyLSName);
// Use got to download the file as a buffer
const libertyLS = await got(libertyLSURL, { responseType: 'buffer' });
// Write the binary data to a file
libertyLSFileStream.write(libertyLS.body);
libertyLSFileStream.end();
} catch (error) {
console.error('Error downloading the file:', error);
}
});
Test cases are failing while the dependency of gulp library is upgraded from 4.0.2 to 5.0.0. Primary analysis shown that the project is not detected by the liberty dashboard.
The text was updated successfully, but these errors were encountered: