Skip to content

Commit

Permalink
Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Aug 28, 2024
1 parent 7981789 commit 1172473
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Description: Creates source code for 1.14.4 (by default: client only)
|``--genconf <value>``|only generates a json-Config file<br/> value = JSON-Config file to generate | ``--genconf config.json`` |
|``-c <value>`` ``--conf <value>``|load a json-Config file<br/> value = JSON-Config file (see below) |``-c config.json`` (uses a file called config.json for configuration)|
|``-v`` ``--mcversion``|Required (if using no json file for configuration)<br /> Version that should be downloaded|``-v 1.14.4`` (generates files for 1.14.4)<br/>``-v LATEST`` (generates files for latest version)|
|``-j`` ``--java``|Path to ``java.exe`` (Java11+)<br/><i>default:</i> path to included ``jre``<br/><i>experimental:</i><br/>If not set, will be automatically searched in either the Environment-Variable ``%JAVA_HOME%``(Windows) / ``$JAVA_HOME``(Linux/Mac) or over the command ``where java`` (Windows, Linux, Mac) | ``-j "C:\Program Files\Java\openjdk-11.0.2\bin\java.exe"`` |
|``-j`` ``--java``|Path to ``java.exe`` (Java21+)<br/><i>default:</i> path to included ``jre``<br/><i>experimental:</i><br/>If not set, will be automatically searched in either the Environment-Variable ``%JAVA_HOME%``(Windows) / ``$JAVA_HOME``(Linux/Mac) or over the command ``where java`` (Windows, Linux, Mac) | ``-j "C:\Program Files\Java\openjdk-21.0.2\bin\java.exe"`` |
|``-p`` ``--profiles``|Given profiles/variants, that should be used<br/>Overrides the ``Enabled``-property in the json |``-p client server`` ``-p client``|

##### 2. Run it over JSON-Configuration
Expand Down
2 changes: 1 addition & 1 deletion src/Aves/CMD/CmdOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CmdOption
[Option('v', "mcversion", HelpText = "version that should be used; e.g. 1.15")]
public string Version { get; set; } = null;

[Option('j', "java", HelpText = "path to java.exe (requires Java 11+)")]
[Option('j', "java", HelpText = "path to java.exe (requires Java 21+)")]
public string JavaExePath { get; set; } = null;

[Option('p', "profiles", HelpText = "name of the profiles/variants which should get executed (they are also executed if they are disabled); Default: client only")]
Expand Down
2 changes: 1 addition & 1 deletion src/Aves/Config/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class Configuration : JsonConfig
/// if not absloute: relative to <see cref="AppDomain.CurrentDomain.BaseDirectory"/>
/// </summary>
/// <example>
/// "C:\Program Files\Java\jre1.11.0_XXX\bin\java.exe"
/// "C:\Program Files\Java\21.0_XXX\bin\java.exe"
/// </example>
public string JavaExePath { get; set; } = Path.Combine("jre", "bin", RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "java.exe" : "java");

Expand Down

0 comments on commit 1172473

Please sign in to comment.