# File addon/buildr/nailgun.rb, line 132
      def start
        self.allow_nails_by_class_name = false

        NGClient::Main.nail = NGClient.new
        self.default_nail_class = NGClient::Main

        @thread = java.lang.Thread.new(self)
        @thread.setName(to_s)
        @thread.start

        sleep 1 while getPort == 0
        info "#{self} Started."
      end