Skip to content

Commit

Permalink
Update the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jan 24, 2024
1 parent 104c180 commit 063c997
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bin/setup_ant.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions docs/api/classes/Setup.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/usage/inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ The version constraint of Apache Ant (optional, defaults to `latest`).
Allowed values are:

- `latest` or `*`: the latest stable release.
- a loose version number: `1.0.0`, `1.10.0`, etc. It's equivalent to the caret `^` operator: `^1.0.0`, `^1.10.0`, etc.
- a strict version number: `=1.0.0`, `=1.10.0`, etc.
- a loose version number: `^1.0.0`, `~1.10.0`, etc.
- a strict version number: `1.0.0`, `=1.10.0`, etc.
- a version specification: `1.10.x`, `>=1.0.0 <1.10.0`, `=1.0.0 || ^1.10.0`, etc.

> The version constraint follows the syntax and semantics of the [tink_semver](https://github.com/haxetink/tink_semver) library.
> The version constraint follows the syntax and semantics of the [semver](https://www.npmjs.com/package/semver) package.
## **optional-tasks**: boolean
By default, the external libraries required by each of the [optional tasks](https://ant.apache.org/manual/install.html#optionalTasks) are not installed.
Expand Down
4 changes: 2 additions & 2 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Setup {
async download(optionalTasks = false): Promise<string> {
const path = await extractZip(await downloadTool(this.release.url.href));
const directory = join(path, await this.#findSubfolder(path));
if (optionalTasks) await this.fetchOptionalTasks(directory);
if (optionalTasks) await this.#fetchOptionalTasks(directory);
return directory;
}

Expand All @@ -58,7 +58,7 @@ export class Setup {
* @param antHome The path to the Ant directory.
* @returns Resolves when the optional tasks have been fetched.
*/
fetchOptionalTasks(antHome: string): Promise<unknown> {
#fetchOptionalTasks(antHome: string): Promise<unknown> {
return promisify(exec)("ant -buildfile fetch.xml -noinput -silent -Ddest=system", {cwd: antHome, env: {ANT_HOME: antHome}});
}

Expand Down

0 comments on commit 063c997

Please sign in to comment.