From 59aa2f8c7133aab2c7e61506cb19dff38e1dd435 Mon Sep 17 00:00:00 2001 From: Evgeny Goldin Date: Mon, 30 Jan 2012 02:58:30 +0200 Subject: [PATCH] Ant task - Wiki update. --- build-tools/Wiki.txt | 83 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/build-tools/Wiki.txt b/build-tools/Wiki.txt index 15c78da8618..c69db004c5c 100644 --- a/build-tools/Wiki.txt +++ b/build-tools/Wiki.txt @@ -1,9 +1,12 @@ {toc:style=disc|indent=20px} -h1. Ant - task +h1. Ant -To define an Ant's {{**}} task you need to define a {{*KOTLIN_HOME*}} environment variable and reference it in your Ant build: -{code} +h2. Defining {{**}} task using local Kotlin setup + +One way to define Ant's {{**}} task is by using your local Kotlin setup and {{*KOTLIN_HOME*}} environment variable: + +{code:xml} @@ -16,6 +19,76 @@ To define an Ant's {{**}} task you need to define a {{*KOTLIN_HOME*}} e Alternatively, you can copy all jar files from Kotlin distribution to Ant's {{"lib"}} folder. +h2. Defining {{**}} task using Ivy + +Another way to define Ant's {{**}} task is by using Ivy: + +{{"ivyconf.xml"}}: + +{code:xml} + + + + + + + + + + + + + + + + + + + + + + + + + + +{code} + +{{"ivy.xml"}}: + +{code:xml} + + + + + + + + + + + + + + +{code} + +{{"build.xml"}}: + +{code:xml} + + + + + + + + + + + +{code} + h2. {{**}} attributes @@ -37,7 +110,7 @@ If {{"module"}} is used - only {{"jar"}} can be specified or it can be omitted | h2. Examples -{code} +{code:xml} @@ -73,7 +146,7 @@ fun main(args: Array) { h3. Classpath examples -{code} +{code:xml}