1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Switch to Ammonite REPL

It comes with working tab completion. \o/
This commit is contained in:
Florian Schmaus 2016-02-23 16:30:20 +01:00
parent 5c00172f6a
commit f351919fa5
6 changed files with 37 additions and 6 deletions

4
repl
View file

@ -26,5 +26,5 @@ echo "Finished, starting REPL"
java \
-Dscala.usejavacp=true \
-classpath "${GRADLE_CLASSPATH}" \
scala.tools.nsc.MainGenericRunner \
-i smack-repl/scala.repl
ammonite.repl.Main \
-f smack-repl/scala.repl

View file

@ -10,7 +10,9 @@ dependencies {
compile project(':smack-extensions')
compile project(':smack-experimental')
compile project(':smack-legacy')
compile "org.scala-lang:scala-compiler:${scalaVersion}"
compile "com.lihaoyi:ammonite-repl_$scalaVersion:0.5.5"
testCompile project(path: ":smack-core", configuration: "testRuntime")
testCompile project(path: ":smack-core", configuration: "archives")
}
task printClasspath(dependsOn: assemble) << {

View file

@ -1,4 +1,4 @@
org.igniterealtime.smack.repl.SmackRepl.init()
org.igniterealtime.smack.smackrepl.SmackRepl.init()
import org.jivesoftware.smack._
import org.jivesoftware.smack.util.TLSUtils

View file

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.igniterealtime.smack.repl;
package org.igniterealtime.smack.smackrepl;
import org.jivesoftware.smack.SmackConfiguration;
import org.jivesoftware.smack.util.dns.javax.JavaxResolver;

View file

@ -18,4 +18,4 @@
/**
* A REPL (Read Eval Print Loop) for Smack.
*/
package org.igniterealtime.smack.repl;
package org.igniterealtime.smack.smackrepl;

View file

@ -0,0 +1,29 @@
/**
*
* Copyright 2016 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.igniterealtime.smack.smackrepl;
import org.junit.Test;
public class SmackReplTest {
/**
* Just here to ensure jacoco is not complaining.
*/
@Test
public void emptyTest() {
}
}