Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cat << EOF > reportLineSeparator.sc
- #!/usr/bin/env scala
- val bytes = sys.props("line.separator").map { _.toInt }.mkString(" ")
- printf("line.separator bytes: %sn",bytes)
- EOF
- chmod +x reportLineSeparator.sc
- #JAVA_OPTS=-Dline.separator=$'n'
- reportLineSeparator.sc
- export JAVA_OPTS=-Dline.separator=$'n'
- execCommand
- "${JAVACMD:=java}"
- $JAVA_OPTS
- "${java_args[@]}"
- "${classpath_args[@]}"
- -Dscala.home="$SCALA_HOME"
- $OVERRIDE_USEJAVACP
- $WINDOWS_OPT
- scala.tools.nsc.MainGenericRunner "$@"
- $ reportLineSeparator.sc
- line.separator bytes: 10
Add Comment
Please, Sign In to add comment