From 40ef0a329fd81905003b9e6523fc2cb9bda1ef6d Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Fri, 1 May 2015 17:26:45 +0200 Subject: [PATCH] docs related to #568 on multiple main classes --- src/sphinx/archetypes/index.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/sphinx/archetypes/index.rst b/src/sphinx/archetypes/index.rst index aecabe2b3..daeaf128a 100644 --- a/src/sphinx/archetypes/index.rst +++ b/src/sphinx/archetypes/index.rst @@ -54,8 +54,14 @@ this archetype in your build, do the following in your ``build.sbt``: wixProductUpgradeId := "4552fb0e-e257-4dbd-9ecb-dba9dbacf424" -This archetype will use the ``mainClass`` setting of sbt (automatically discovers your main class) to generate ``bat`` and ``bin`` scripts for your project. It -produces a universal layout that looks like the following: +This archetype will use the ``mainClass`` setting of sbt (automatically discovers your main class) to generate ``bat`` and ``bin`` scripts for your project. +In case you have multiple main classes you can point to a specific class with the following setting: + +.. code-block:: scala + + mainClass in Compile := Some("foo.bar.Main") + +The universal layout produces looks like the following: .. code-block:: none