Note that there are some explanatory texts on larger screens.

plurals
  1. POsbt 0.11.2 how to combine ~copy-resources with ~aux-compile
    primarykey
    data
    text
    <p>I'm using sbt 0.11.2 with xsbt-web-plugin 0.2.10 to build a Wicket (1.5.3) app. I'm using this version of Jetty: </p> <pre>"org.eclipse.jetty" % "jetty-webapp" % "8.0.1.v20110908" % "container",</pre> <p>So when I do </p> <pre>> container:start</pre> <p>my app starts up just fine.</p> <p>But if I change some some of the html, the change does not kick in until I do </p> <pre>> copy-resources</pre> <p>and scala source code changes are not reflected until I do<br> <pre>> aux-compile</pre> (this one was hard to find out!!)</p> <p>The problem is that I want this to be reflected immediately. I can do </p> <pre>> ~ copy-resources</pre> <p>or </p> <pre>> ~ aux-compile </pre> <p>separately so that one or the other will happen on save automatically. </p> <p>The problem is that I don't see any obvious way to do both because I can't enter a 2nd tilde-prefixed command without pressing the enter key first to get the command prompt, and that cancels the running tilde command.</p> <p>Thanks.</p> <hr> <p><strong>UPDATE:</strong><br> I posted a minimal example of what I'm trying to do here:<br> <a href="https://github.com/jpswain/DummySbtScalaWicket.git" rel="nofollow">https://github.com/jpswain/DummySbtScalaWicket.git</a></p> <p>I fire this up by running sbt (0.11.2), and then doing </p> <pre>> container:start</pre> <p>So you will notice that if you do "~aux-compile" and change a log statement, or change the name that is read by the label, that will be updated on the fly. If you do "~copy-resources" and change "Hello" -> "Hola" you will see that changed on the fly. I'm trying to make it so that both will be done on save. "~container:reload /" seems to do nothing!</p> <p>The answer from @Vasil Remeniuk seems like the right approach, except I haven't figure out exactly where to put the code to make it work. (I get a syntax error.) It would be great if someone would please verify if that code will work, or if I'm doing something wrong with my project that would prevent it from working?</p> <p>Thanks!!<br> Jamie</p> <p><hr/> <strong>FINAL UPDATE:</strong><br> Thanks to the advice from @Vasil Remeniuk I got all this working. If anyone needs it for a quickstart to work with reloadable Jetty container, just download it at <a href="https://github.com/jpswain/DummySbtScalaWicket.git" rel="nofollow">https://github.com/jpswain/DummySbtScalaWicket.git</a><br> and then from the directory run: </p> <pre>$ sbt</pre> <p>once sbt comes up, do this:</p> <pre>> container:start</pre> <pre>> ~auxx</pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload