Modulinos: Difference between revisions
Content added Content deleted
(Fixed numbered list, added test confirmation) |
|||
Line 129: | Line 129: | ||
# clj is passed the flag -m <class> <lang sh>$ clj -m scriptedmain |
# clj is passed the flag -m <class> <lang sh>$ clj -m scriptedmain |
||
Main: The meaning of life is 42 |
Main: The meaning of life is 42 |
||
$ clj -m test |
|||
Test: The meaning of life is 42</lang> |
|||
# A shebang forces -m <lang sh>$ ./scriptedmain.clj |
# A shebang forces -m <lang sh>$ ./scriptedmain.clj |
||
Main: The meaning of life is 42 |
Main: The meaning of life is 42 |
||
$ ./test.clj |
|||
Test: The meaning of life is 42</lang> |
|||
# The compiled class is run. <lang sh>$ java -cp ~/Library/Clojure/lib/clojure.jar:. scriptedmain |
# The compiled class is run. <lang sh>$ java -cp ~/Library/Clojure/lib/clojure.jar:. scriptedmain |
||
Main: The meaning of life is 42 |
Main: The meaning of life is 42 |
||
$ java -cp ~/Library/Clojure/lib/clojure.jar:. test |
|||
Test: The meaning of life is 42</lang> |
|||
scriptedmain.clj |
scriptedmain.clj |