diff --git a/examples/maven/hello-world/ReadMe.md b/examples/maven/hello-world/ReadMe.md deleted file mode 100644 index 550d5b946f4..00000000000 --- a/examples/maven/hello-world/ReadMe.md +++ /dev/null @@ -1,30 +0,0 @@ -# Kotlin hello-world example with maven - -## Prerequisites to running the example - - * download Maven directly from the [Apache Maven homepage](http://maven.apache.org/download.html) - * install and configure your system as described in [the installation section](http://maven.apache.org/download.html#Installation) - -## Compiling/Testing/Running the example - -If you have maven on your path, simple type: - - mvn test - -It will compile: - * src/main/kotlin/Hello.kt into target/classes/hello/namespace.class - * src/main/kotlin/Hello.kt into target/test-classes/hello/tests/HelloTest.class - -Then run tests, and finnaly run your man hello 'namespace'. - -## Only running the example - -Once you compiled the sources with previous 'mvn test' command, you can run the application by typing: - - mvn exec:java - -## Using commandline arguments - -If you want to modify the main method in Hello.kt in order to use commandline arguments, you can specify them on commandline as: - - mvn exec:java -Dexec.args="argument1" diff --git a/examples/maven/hello-world/pom.xml b/examples/maven/hello-world/pom.xml deleted file mode 100644 index 7e742bdd27b..00000000000 --- a/examples/maven/hello-world/pom.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - 4.0.0 - - org.jetbrains.kotlin.examples - hello-world - 1.0-SNAPSHOT - - - 0.1-SNAPSHOT - 4.10 - - UTF-8 - - - - - org.jetbrains.kotlin - kotlin-stdlib - ${kotlin.version} - - - - junit - junit - ${junit.version} - test - - - - - ${project.basedir}/src/main/kotlin - ${project.basedir}/src/test/kotlin - - - - kotlin-maven-plugin - org.jetbrains.kotlin - ${kotlin.version} - - - - - compile - compile - - compile - - - - test-compile - test-compile - - test-compile - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - test - - java - - - - - hello.HelloPackage - - - - - - - - jetbrains-all - http://repository.jetbrains.com/all - - - - - - jetbrains-all - http://repository.jetbrains.com/all - - - - diff --git a/examples/maven/hello-world/src/main/kotlin/Hello.kt b/examples/maven/hello-world/src/main/kotlin/Hello.kt deleted file mode 100644 index fc7d3e208c6..00000000000 --- a/examples/maven/hello-world/src/main/kotlin/Hello.kt +++ /dev/null @@ -1,10 +0,0 @@ -package hello - -public fun getHelloString() : String { - return "Hello, world!" -} - -fun main(args : Array) { - println(getHelloString()) -} - diff --git a/examples/maven/hello-world/src/test/kotlin/HelloTest.kt b/examples/maven/hello-world/src/test/kotlin/HelloTest.kt deleted file mode 100644 index 8fa98db15a9..00000000000 --- a/examples/maven/hello-world/src/test/kotlin/HelloTest.kt +++ /dev/null @@ -1,11 +0,0 @@ -package hello.tests - -import junit.framework.TestCase -import kotlin.test.assertEquals -import hello.getHelloString - -class HelloTest : TestCase() { - fun testAssert() : Unit { - assertEquals("Hello, world!", getHelloString()) - } -} diff --git a/examples/maven/mixed-code-hello-world/pom.xml b/examples/maven/mixed-code-hello-world/pom.xml deleted file mode 100644 index 42dedd97203..00000000000 --- a/examples/maven/mixed-code-hello-world/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - 4.0.0 - - org.jetbrains.kotlin.examples - mixed-code-hello-world - 1.0-SNAPSHOT - - - 0.1-SNAPSHOT - 4.10 - - UTF-8 - - - - - org.jetbrains.kotlin - kotlin-stdlib - ${kotlin.version} - - - - junit - junit - ${junit.version} - test - - - - - - - kotlin-maven-plugin - org.jetbrains.kotlin - ${kotlin.version} - - - - - compile - process-sources - - compile - - - - test-compile - process-test-sources - - test-compile - - - - - - - - - - jetbrains-all - http://repository.jetbrains.com/all - - - - - - jetbrains-all - http://repository.jetbrains.com/all - - - - diff --git a/examples/maven/mixed-code-hello-world/src/main/java/hello/JavaHello.java b/examples/maven/mixed-code-hello-world/src/main/java/hello/JavaHello.java deleted file mode 100644 index 558ab54fabe..00000000000 --- a/examples/maven/mixed-code-hello-world/src/main/java/hello/JavaHello.java +++ /dev/null @@ -1,14 +0,0 @@ -package hello; - -public class JavaHello { - public static String JavaHelloString = "Hello from Java!"; - - public static String getHelloStringFromKotlin() { - return HelloPackage.KotlinHelloString; - } - - public static void main(String[] args) { - System.out.println(getHelloStringFromKotlin()); - System.out.println(HelloPackage.getHelloStringFromJava()); - } -} diff --git a/examples/maven/mixed-code-hello-world/src/main/java/hello/KotlinHello.kt b/examples/maven/mixed-code-hello-world/src/main/java/hello/KotlinHello.kt deleted file mode 100644 index 2c5eac28b49..00000000000 --- a/examples/maven/mixed-code-hello-world/src/main/java/hello/KotlinHello.kt +++ /dev/null @@ -1,7 +0,0 @@ -package hello - -public val KotlinHelloString : String = "Hello from Kotlin!" - -public fun getHelloStringFromJava() : String { - return JavaHello.JavaHelloString!!; -} diff --git a/examples/maven/mixed-code-hello-world/src/test/java/hello/tests/HelloTest.java b/examples/maven/mixed-code-hello-world/src/test/java/hello/tests/HelloTest.java deleted file mode 100644 index 8e92a6bfbe8..00000000000 --- a/examples/maven/mixed-code-hello-world/src/test/java/hello/tests/HelloTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package hello.tests; - -import hello.JavaHello; -import junit.framework.TestCase; - -public class HelloTest extends TestCase { - public void testAssert() { - assertEquals("Hello from Kotlin!", JavaHello.getHelloStringFromKotlin()); - assertEquals("Hello from Java!", hello.HelloPackage.getHelloStringFromJava()); - - System.out.println(hello.HelloPackage.getHelloStringFromJava()); - } -}