diff --git a/play-scala-tls-example/play b/play-scala-tls-example/play index d6d57f73c..c29095bda 100755 --- a/play-scala-tls-example/play +++ b/play-scala-tls-example/play @@ -61,24 +61,6 @@ JVM_OPTIONS="$JVM_OPTIONS -Dsun.security.ssl.allowLegacyHelloMessages=false" JVM_OPTIONS="$JVM_OPTIONS -Dkey.password=$KEY_PASSWORD" JVM_OPTIONS="$JVM_OPTIONS -DcertificateDirectory=$DIR/scripts" -# ssl-play requires an ALPN Agent. This is downdloaded and stored in the target folder. -# This snippet detects when the ALPN agent hasn't been downloaded yet and runs -# `sbt stage` to obtain it. -export AGENT_TEST=$(pwd)/$(find target -name 'jetty-alpn-agent-*.jar') -export NUM_AGENTS_FOUND=$(echo $AGENT_TEST| grep target | wc -l) - -if [ $NUM_AGENTS_FOUND -eq "0" ]; then - echo "No ALPN Agent jar found, running 'sbt stage'" - sbt stage; -fi - -# Start `sbt` with the JVM_OPTIONS and the ALPN agent -export AGENT=$(pwd)/$(find target -name 'jetty-alpn-agent-*.jar' | head -1) -echo "Detected ALPN Agent: $AGENT " - -# Run Play (this should work for both run and start). -export SBT_OPTS="$SBT_OPTS -J-javaagent:$AGENT" - ## Ucomment the following to debug SSL issues. #export SBT_OPTS="$SBT_OPTS -Djavax.net.debug=all"