HowToBuildStendhal: Difference between revisions

Content deleted Content added
imported>AntumDeluge
JDK on Windows: installing using WinGet
imported>AntumDeluge
Ant: installation instructions
Line 61:
# install version 17
$ brew install openjdk@17
</pre>
 
 
== Ant ==
 
[https://ant.apache.org/ Apache Ant] is the main tool for building from the command line. All components can be built using this method. However, some components are built using another tool to which Ant serves as a wrapper to call its commands. For example, the Android app is built using [https://gradle.org/ Gradle] (or a Gradle Wrapper). In this case, Gradle builds the app. Ant simply calls Gradle as a sub-command.
 
Apache provides executables for multiple systems from their [https://ant.apache.org/bindownload.cgi downloads page]. Alternatively, see the following instructions for specific systems.
 
=== Ant on Unix ===
 
Most Unix/Linux/BSD distributions have a version of Ant available from the default package manager.
 
Example of installing on Ubuntu:
<pre>
$ sudo apt install ant
</pre>
 
Example of installing on Arch:
<pre>
$ sudo pacman -S ant
</pre>
 
Example of installing on FreeBSD:
<pre>
# install pre-built package
$ sudo pkg install apache-ant
 
# compile from Ports source
$ cd /usr/ports/devel/apache-ant
$ sudo make install clean
</pre>
 
=== Ant on Windows ===
 
For Windows, follow these steps:
 
# Download one of the <span style="color:darkblue;">''apache-ant-&lt;version&gt;-bin</span> packages from the link above (Windows supports .zip archives by default).
# Extract the package contents to a unique directory.
# Add the directory path to your system's PATH environment variable.
# Open a command prompt (cmd). Type <span style="color:darkred;">''ant -version''</span> and press "enter". If it is set up correctly, version information will be printed.
 
=== Ant on macOS ===
 
For macOS, the same instructions for [[HowToBuildStendhal#Ant_on_Windows|Windows]] can be used. Alternatively, it is also provided through Homebrew.
 
Example of installing on macOS using Homebrew:
<pre>
$ brew install ant
</pre>