![]() Verify that apache-ant is properly configured for version 1.6. Update-alternatives -install /usr/bin/ant ant /usr/share/apache-ant-stock/bin/ant 3Ĭonfigure alternatives to use the apache-ant-1.6.5 binary directory:Ĭonfigure alternatives to use the apache-ant-1.6.5 binaries to provide ant: Update-alternatives -install /usr/bin/ant ant /usr/share/apache-ant-1.8.2/bin/ant 2Īdd the “stock” executable to alternatives: Map the /usr/share/apache-ant-1.8.2/bin/ant executable to /usr/bin/ant: Update-alternatives -install /usr/bin/ant ant /usr/share/apache-ant-1.6.5/bin/ant 1 Use alternatives to the map /usr/share/apache-ant-1.6.5/bin/ant executable to /usr/bin/ant: Update-alternatives -install /usr/share/ant ant-bins /usr/share/apache-ant-stock 3 Re-add the “stock” apache-ant binaries to be provided by alternatives: ![]() Update-alternatives -install /usr/share/ant ant-bins /usr/share/apache-ant-1.8.2 2 Update-alternatives -install /usr/share/ant ant-bins /usr/share/apache-ant-1.6.5 1 Use alternatives to map /usr/share/apache-ant-1.6.5 to /usr/share/ant, which is Ubuntu’s default location for the apache-ant binaries: Gradle is fully supported for your ANT tasks, Maven and lvy repository infrastructure. Learn to automate software build processes with Apache Ant, the most widely used test-driven development build tool for Java projects. Test -f /usr/share/ant || sudo mv /usr/share/ant /usr/share/apache-ant-stock JUnit 5 Gradle Dependencies To run JUnit 5 tests through Gradle. Repeat for apache-ant-1.8.2 (or any other version you may need):Ĭheck if apache-ant is already installed and move its binaries to the “stock” directory: Here is how you can use alternatives to install and configure apache-ant. ![]() ![]() This utility can be found in many Linux distributions however, this guide was specifically written for and tested on Ubuntu 11.10. Ubuntu Linux comes with alternatives – a command-line utility to create and maintain symbolic links to default commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |