Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit bee77ac

Browse files
Merge pull request #465 from telerik/vladimirov/remove-ant-check
Remove check for ant version
2 parents c41cb48 + 04df257 commit bee77ac

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

declarations.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ interface ISysInfoData {
306306
// dependencies
307307
/** version of java, as returned by `java -version` */
308308
javaVer: string;
309-
/** version string of ant, as returned by `ant -version` */
310-
antVer: string;
311309
/** Xcode version string as returned by `xcodebuild -version`. Valid only on Mac */
312310
xcodeVer: string;
313311
/** Version string of adb, as returned by `adb version` */

sysinfo.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,13 @@ export class SysInfo implements ISysInfo {
4242

4343
// dependencies
4444
try {
45-
// different java has different format for `java -version` command
45+
// different java has different format for `java -version` command
4646
let output = this.$childProcess.spawnFromEvent("java", ["-version"], "exit").wait().stderr;
4747
res.javaVer = /(?:openjdk|java) version \"((?:\d+\.)+(?:\d+))/i.exec(output)[1];
4848
} catch(e) {
4949
res.javaVer = null;
5050
}
5151

52-
procOutput = this.exec("ant -version");
53-
res.antVer = procOutput ? procOutput.split(os.EOL)[0] : null;
54-
5552
res.nodeGypVer = this.exec("node-gyp -v");
5653
res.xcodeVer = this.$hostInfo.isDarwin ? this.exec("xcodebuild -version") : null;
5754
res.itunesInstalled = this.$iTunesValidator.getError().wait() === null;

0 commit comments

Comments
 (0)