Getting Started with Cake
History Key
- New content
Removed content
Recent Versions
Choose two versions to compare, or click the link to view it.
Cake is a powerful, dependency-based build tool forThe Clojure
thatGetting isStarted reallypages fasthave because it uses persistent JVMs. It also has a built-in, concurrent REPL with command-line history and tab completion. Cake works on Linux, OS X and Windows.
h1. Installing
There are three waysmoved to
get Cake:
h4. Using gem
# @gem install cake@
h4. Standalone script
# "Download the script":https://github.com/ninjudd/cake/raw/master/bin/cake
# Put it somewhere in your path and @chmod +x cake@ to make it executable
h4. Git repository
# @git clone git://github.com/ninjudd/cake.git@
# Symlink @bin/cake@ into your path and make it executable
h2. Installing on Windows
# Download and install "Ruby":http://www.ruby-lang.org
# Download and install the "JDK":http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html
# Add @C:\Program Files\Java\jdk1.6.0_21\bin@ to your @PATH@ environment variable ^1^
# Start cmd or your favorite teminal program
# Run: @gem install win32-process@
# Run: @gem install cake@
# Run: @cake help@
^1: Or the appropriate path for your system. Here are more "detailed instructions":http://www.cs.princeton.edu/introcs/15inout/windows-cmd.html.^
h1. Common tasks
bc. cake help ;; Print tasks with documentation. Use 'cake help TASK' for more details.
cake clean ;; Remove cake build artifacts.
cake compile ;; Compile all clojure and java source files.
cake deps ;; Fetch dependencies and create pom.xml.
cake eval ;; Eval the given forms in the project JVM.
cake release ;; Release project jar to clojars.
cake repl ;; Start an interactive shell with history and tab completion.
cake run ;; Execute a script in the project jvm.
cake swank ;; Report status of swank server and start it if not running.
cake test ;; Run project tests.
cake jar ;; Build a jar file containing project source and class files.
Check out the "README":http://github.com/ninjudd/cake for more information or join us in "#cake.clj":irc://irc.freenode.net/#cake.clj or the "google group":http://groups.google.com/group/clojure-cake.http://dev.clojure.org.