Skip to content

Self running clojure batch file.

June 1, 2010

I picked this up from the mailing list. I didn’t want to forget about it so I’m posting it here as a reminder.

😡 (comment
@echo off
java -cp d:/products/clojure/clojure.jar clojure.main "%~f0" %*
goto :eof
)

(println "Hi!" *command-line-args*)

Very handy.

Advertisements

From → Clojure

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: