我有这个build.sbt文件:
import NativePackagerHelper._
import NativePackagerKeys._
packageArchetype.java_application
name := """IdTabDriver"""
version := "1.0.0.1"
name in Windows := "IdTabDriver"
packageSummary in Windows := "IdTabDriver"
packageDescription in Windows := "IdTabDriver"
maintainer in Windows := "Access France"
organization := "Access France"
lazy val root = (project in file(".")).enablePlugins(PlayJava)
scalaVersion := "2.10.4"
mappings in Universal ++= directory("keys")
batScriptExtraDefines in Windows += """set _JAVA_OPTS=%_JAVA_OPTS% -Dconfig.file=%IDTABDRIVER_HOME%\\conf\\application.conf"""
libraryDependencies ++= Seq(
cache,
javaWs,
"commons-configuration" % "commons-configuration" % "1.10",
"org.rxtx" % "rxtxcomm" % "2.0-7pre1"
)
我想设置一些参数(从现在开始在application.conf中定义),但batScriptExtraDefines
似乎被忽略了...它被我的IDE解析为符合符号,但它不会影响生成的符号。蝙蝠......
我也尝试添加
javaOptions in Universal ++= Seq(
//app parameters
"-Dhttps.port=44360",
"-Dhttps.keyStore=keys/server.p12",
"-Dhttps.keyStoreType=pkcs12",
"-Dhttps.keyStorePassword=12345678"
)
但它没有做任何事情。
我误解了什么?
PS:我正在使用sbt-native-packager 0.8.0