2015-02-27 21:10 GMT+01:00 Sean Corfield :
> On Feb 27, 2015, at 6:56 AM, Cecil Westerhof
> wrote:
>
> Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts
> in this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38)
>
>
> Right, as I said:
>
You are right: I
On Feb 27, 2015, at 6:56 AM, Cecil Westerhof wrote:
> Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts in
> this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38)
Right, as I said:
"jvm-opts is a function in project.clj that returns the default JVM option
2015-02-27 15:56 GMT+01:00 Cecil Westerhof :
> 2015-02-27 14:29 GMT+01:00 Sean Corfield :
>
>> On Feb 27, 2015, at 12:09 AM, Cecil Westerhof
>> wrote:
>>
>> In my application I have a quit button which does:
>> (System/exit 0)
>>
>> But when I used 'lein repl' I do not want to exit, but just
2015-02-27 14:29 GMT+01:00 Sean Corfield :
> On Feb 27, 2015, at 12:09 AM, Cecil Westerhof
> wrote:
>
> In my application I have a quit button which does:
> (System/exit 0)
>
> But when I used 'lein repl' I do not want to exit, but just close the
> frame. Can this be done?
>
>
> Here’s how we
On Feb 27, 2015, at 12:09 AM, Cecil Westerhof wrote:
> In my application I have a quit button which does:
> (System/exit 0)
>
> But when I used 'lein repl' I do not want to exit, but just close the frame.
> Can this be done?
Here’s how we do it. Add the following to project.clj:
:profile
2015-02-27 11:42 GMT+01:00 henry w :
> Well, I dont know if you could. but unless anyone else chimes in with
> another solution... there's no problem using clojure and java together in a
> lein project.
>
> And just to check ... this system/exit call is library code you have no
> control over righ
Well, I dont know if you could. but unless anyone else chimes in with
another solution... there's no problem using clojure and java together in a
lein project.
And just to check ... this system/exit call is library code you have no
control over right? I mean, if not of course you can stick a *
2015-02-27 10:01 GMT+01:00 henry w :
> I had exactly that problem when using an old version of JDAF. The newer
> version makes it configurable.
>
> to get around the problem i used AspectJ like this:
>
> @Aspect
> public class SystemExitEvader {
>
> @Pointcut("call(* java.lang.System.exit(..))
I had exactly that problem when using an old version of JDAF. The newer
version makes it configurable.
to get around the problem i used AspectJ like this:
@Aspect
public class SystemExitEvader {
@Pointcut("call(* java.lang.System.exit(..)) && args(status)")
public void systemExitCall(in