Skip to content

Commit 1d2798f

Browse files
change build to update bazel-ls-eclipse from master branch
1 parent 2c25d6e commit 1d2798f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Installation
1111
```
1212
2. Clone the repository
1313
```bash
14-
git clone --recurse-submodules [email protected]:salesforce/bazel-ls-vscode.git
14+
git clone [email protected]:salesforce/bazel-ls-vscode.git
1515
```
1616
3. Install the dependencies:
1717
```bash

bazel-ls-eclipse

Submodule bazel-ls-eclipse deleted from 2d7a94b

gulpfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@
44
const gulp = require('gulp');
55
const cp = require('child_process');
66
const path = require('path');
7+
const fs = require('fs');
78
const serverDir = path.join(__dirname, 'bazel-ls-eclipse');
9+
const mvnCmd = path.join(serverDir, mvnw());
810

911
gulp.task('build-plugin', (done) => {
10-
cp.execSync(`${mvnw()} clean package`, { cwd: serverDir, stdio: [0, 1, 2] });
12+
13+
if( fs.existsSync(mvnCmd) ){
14+
cp.execSync('git fetch origin', {cwd: serverDir, stdio: [0, 1, 2] });
15+
cp.execSync('git pull origin --force', {cwd: serverDir, stdio: [0, 1, 2] });
16+
}else{
17+
cp.execSync('git clone https://github.com/salesforce/bazel-ls-eclipse.git', { cwd: __dirname, stdio: [0, 1, 2] });
18+
}
19+
20+
cp.execSync(`mvn clean package`, { cwd: serverDir, stdio: [0, 1, 2] });
1121
done();
1222
});
1323

0 commit comments

Comments
 (0)