Getting a dev environment setup for working on kotlin/libraries

Mark, could you explain why this command is needed?  I don't understand this script (apologies for my shell scripting ignorance)

$ for i in update_dependencies build; do ant -f $i.xml; done; (cd libraries/; mvn -PlocalKotlin clean package)

vonwao wrote:

Mark, could you explain why this command is needed?  I don’t understand this script (apologies for my shell scripting ignorance)

$ for i in update_dependencies build; do ant -f $i.xml; done; (cd libraries/; mvn -PlocalKotlin clean package)


Hi, Otto!

Yes, it’s a bit of bash shell scripting.  The script is equivalent to these four commands executed manually:


ant -f update_dependencies.xml
ant -f build.xml
cd libraries
mvn -PkotlinLocal clean package


The first two Ant commands are described in the README.md file on the main jetbrains/kotlin site on github.

https://github.com/JetBrains/kotlin/blob/master/ReadMe.md

The last command (mvn …) is of interest to people like myself who want to work on the Kotlin libraries.  It builds the libraries.

hth
Mark