Skip to content

Commit

Permalink
rename and fix last test
Browse files Browse the repository at this point in the history
  • Loading branch information
muuki88 committed Mar 25, 2015
1 parent fa22aac commit 6082789
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ name := "simple-test"

version := "0.1.0"

javaOptions in Linux ++= Seq(
javaOptions in Universal ++= Seq(
"-J-Xmx64m", "-J-Xms64m", "-Dproperty=true"
)

TaskKey[Unit]("check") := {
val etc = (target in Universal).value / "tmp" / "etc" / "default" / name.value
val content = IO.read(etc)
val application = (target in Universal).value / "tmp" / "conf" / "application.ini"
val content = IO.read(application)
val options = (javaOptions in Linux).value
options.foreach { opt =>
assert(content.contains(opt), "Option [" + opt + "] is missing")
Expand Down
4 changes: 4 additions & 0 deletions src/sbt-test/universal/application-ini-from-javaoptions/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Run the zip packaging.
> stage
# $ exists target/universal/tmp/conf/application.ini
> check
4 changes: 0 additions & 4 deletions src/sbt-test/universal/jvmopts-makeEtcDefault/test

This file was deleted.

2 changes: 1 addition & 1 deletion src/sphinx/archetypes/java_server/customize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You have three options. First, you can specify your options via the ``build.sbt`

.. code-block :: scala
javaOptions in Linux ++= Seq(
javaOptions in Universal ++= Seq(
"-J-Xmx64m", "-J-Xms64m", "-Dproperty=true",
)
Expand Down

0 comments on commit 6082789

Please sign in to comment.