Sha256: 07b125782f7cd3f3efd7318f154f51298d01bbff790f0b1d8cbf9fdbc917754e

Contents?: true

Size: 1.57 KB

Versions: 5

Compression:

Stored size: 1.57 KB

Contents

#!/usr/bin/env jruby

# This "jahn" script is "ahn" for JRUBY!

# Adhearsion, open source collaboration framework
# Copyright (C) 2006,2007,2008 Jay Phillips
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

$:.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")

require 'rubygems'
require 'adhearsion'
require 'adhearsion/cli'

# jahn will soon have JRuby-specific behavior such as creating a compiled .jar
# file from an app.
# require 'adhearsion/jruby'

abort(<<-MESSAGE) unless RUBY_PLATFORM =~ /java/
You must use jahn with JRuby! Are you running this script after installing Adhearsion with non-JRuby RubyGems?

If you don't want to install Adhearsion with the JRuby version of RubyGems, try running jahn directly with an absolute path:

#{File.expand_path(__FILE__)} start your_app_name

Note: You must have the jruby executable in your $PATH and $JRUBY_HOME set.
MESSAGE

Adhearsion::CLI::AhnCommand.execute!

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
adhearsion-1.0.0 bin/jahn
rene-adhearsion-0.8.6 bin/jahn
adhearsion-0.8.6 bin/jahn
adhearsion-0.8.5 bin/jahn
adhearsion-0.8.4 bin/jahn