Install ant in windows codebuild project


I need to run a build on a Windows system. I have an existing build.xml for ant which will do what I want but can't find any documentation or examples on how to install ant on Windows.

The documentation just says "You can use a build specification to install other components (for example, the AWS CLI, Apache Maven, Apache Ant, Mocha, RSpec, or similar) during the install build phase." but does not give any useful examples.

preguntada hace 4 años364 visualizaciones
1 Respuesta

If you are using CodeBuild provided build image, then you can do "choco install ant" in your buildspec. If you are using a custom image, you can directly install ant (multiple ways do this, but you can follow the instructions from

Subin M
respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas