<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>cruise</filename>
    </added>
    <added>
      <filename>cruise.cmd</filename>
    </added>
    <added>
      <filename>script/add_project</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module CruiseControl
   module VERSION #:nodoc:
     MAJOR = 0
-    MINOR = 1
+    MINOR = 2
 
     STRING = [MAJOR, MINOR].join('.')
   end</diff>
      <filename>lib/cruisecontrol/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,49 +1,46 @@
 #!/usr/bin/env ruby
-
-ENV[&quot;RAILS_ENV&quot;] = 'builder'
-
+ENV[&quot;RAILS_ENV&quot;] = 'production'
 require File.dirname(__FILE__) + '/../config/boot'
-
 require 'optparse'
 
 OPTIONS = { :verbose =&gt; false }
 
+project_name = nil
+
 ARGV.options do |opts|
   script_name = File.basename($0)
-  opts.banner = &quot;Usage: ruby #{script_name} [options]&quot;
+  opts.banner = &quot;Usage: cruise builder &lt;project_name&gt; []options]&quot;
 
   opts.separator &quot;&quot;
 
-  opts.on(&quot;-p&quot;, &quot;--project=name&quot;, String,
-          &quot;Project name to build. This option must be specified.&quot;) { |v| OPTIONS[:project_name] = v }
-  opts.on(&quot;-c&quot;, &quot;--checkout=directory&quot;, String,
-          &quot;Where the project's local copy checked out from source control is&quot;,
-          &quot;Default: ccrb/builds/&lt;project_name&gt;/work&quot;) { |v| OPTIONS[:checkout_directory] = v }
   opts.on(&quot;-v&quot;, &quot;--verbose&quot;, &quot;Verbose logging&quot;) { OPTIONS[:verbose] = true }
-
-  opts.separator &quot;&quot;
-
   opts.on(&quot;-h&quot;, &quot;--help&quot;,
           &quot;Show this help message.&quot;) { puts opts; exit }
 
-  opts.parse!
+  args = opts.parse!
 
-  unless OPTIONS[:project_name]
+  unless args.length == 1
     STDERR.puts &quot;Project name not specified&quot;
     STDERR.puts
     puts opts
     exit(-1)
   end
 
-  OPTIONS[:checkout_directory] ||= File.join(RAILS_ROOT, 'builds', OPTIONS[:project_name])
-  OPTIONS[:checkout_directory] = File.expand_path(OPTIONS[:checkout_directory])
+  project_name = args[0]
 end
 
 require RAILS_ROOT + &quot;/config/environment&quot;
 
+project_path = File.expand_path(File.join(Configuration.builds_directory, project_name))
+
+unless File.exist? project_path
+  STDERR.puts &quot;Project '#{project_name}' not found in '#{project_path}'&quot;
+  exit(-1)
+end
+
 begin
   Log.verbose = OPTIONS[:verbose]
-  project = Project.load_or_create(OPTIONS[:checkout_directory])
+  project = Project.load_or_create(project_path)
 
   # this will create builder.pid file in project's CC directory and grab an exclusive lock on it, or else blow up saying 
   # that something else is already locking it</diff>
      <filename>script/builder</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>bin/add_project</filename>
    </removed>
    <removed>
      <filename>bin/builder</filename>
    </removed>
    <removed>
      <filename>bin/cruise</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2c8d286c06b73816191b4108a262f7cfcf6bae12</id>
    </parent>
  </parents>
  <author>
    <name>stellsmi</name>
    <email>stellsmi@c04ce798-636b-4ca8-9149-0f9336831111</email>
  </author>
  <url>http://github.com/dustin/cruisecontrolrb/commit/e06fa58e7f2c22c0fe62ee330c2f496025cff231</url>
  <id>e06fa58e7f2c22c0fe62ee330c2f496025cff231</id>
  <committed-date>2007-01-22T09:50:46-08:00</committed-date>
  <authored-date>2007-01-22T09:50:46-08:00</authored-date>
  <message>getting executables a bit slicker and dropping the gem idea

git-svn-id: http://cruisecontrolrb.rubyforge.org/svn/trunk@13 c04ce798-636b-4ca8-9149-0f9336831111</message>
  <tree>3feb7b3691e012c6c4caeffeddcbfa6627d7d7c5</tree>
  <committer>
    <name>stellsmi</name>
    <email>stellsmi@c04ce798-636b-4ca8-9149-0f9336831111</email>
  </committer>
</commit>
