mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
Switch to Ammonite REPL
It comes with working tab completion. \o/
This commit is contained in:
parent
5c00172f6a
commit
f351919fa5
6 changed files with 37 additions and 6 deletions
4
repl
4
repl
|
@ -26,5 +26,5 @@ echo "Finished, starting REPL"
|
||||||
java \
|
java \
|
||||||
-Dscala.usejavacp=true \
|
-Dscala.usejavacp=true \
|
||||||
-classpath "${GRADLE_CLASSPATH}" \
|
-classpath "${GRADLE_CLASSPATH}" \
|
||||||
scala.tools.nsc.MainGenericRunner \
|
ammonite.repl.Main \
|
||||||
-i smack-repl/scala.repl
|
-f smack-repl/scala.repl
|
||||||
|
|
|
@ -10,7 +10,9 @@ dependencies {
|
||||||
compile project(':smack-extensions')
|
compile project(':smack-extensions')
|
||||||
compile project(':smack-experimental')
|
compile project(':smack-experimental')
|
||||||
compile project(':smack-legacy')
|
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) << {
|
task printClasspath(dependsOn: assemble) << {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
org.igniterealtime.smack.repl.SmackRepl.init()
|
org.igniterealtime.smack.smackrepl.SmackRepl.init()
|
||||||
|
|
||||||
import org.jivesoftware.smack._
|
import org.jivesoftware.smack._
|
||||||
import org.jivesoftware.smack.util.TLSUtils
|
import org.jivesoftware.smack.util.TLSUtils
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.igniterealtime.smack.repl;
|
package org.igniterealtime.smack.smackrepl;
|
||||||
|
|
||||||
import org.jivesoftware.smack.SmackConfiguration;
|
import org.jivesoftware.smack.SmackConfiguration;
|
||||||
import org.jivesoftware.smack.util.dns.javax.JavaxResolver;
|
import org.jivesoftware.smack.util.dns.javax.JavaxResolver;
|
|
@ -18,4 +18,4 @@
|
||||||
/**
|
/**
|
||||||
* A REPL (Read Eval Print Loop) for Smack.
|
* A REPL (Read Eval Print Loop) for Smack.
|
||||||
*/
|
*/
|
||||||
package org.igniterealtime.smack.repl;
|
package org.igniterealtime.smack.smackrepl;
|
|
@ -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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue