Module: JGrouper
- Defined in:
- lib/jgrouper.rb,
lib/jgrouper/stem.rb,
lib/jgrouper/group.rb,
lib/jgrouper/member.rb,
lib/jgrouper/version.rb,
lib/jgrouper/exporter.rb,
lib/jgrouper/audit_archiver.rb
Overview
:nodoc:
Defined Under Namespace
Classes: AuditArchiver, Exporter, Group, Member, Stem
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
-
.home!(path) ⇒ Object
Initialize Grouper API or raise exception if path does not exist.
Class Method Details
.home!(path) ⇒ Object
Initialize Grouper API or raise exception if path does not exist.
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/jgrouper.rb', line 107 def self.home!(path) raise "ERROR: path does not exist - #{path}" unless File.directory?(path) ENV['CLASSPATH'].split(':').each { |cp| $CLASSPATH << cp } [ "#{path}/lib/grouper/", "#{path}/lib/jdbcSamples" ].each do |dir| Dir[ "#{dir}/*.jar" ].each { |jar| $CLASSPATH << jar } end $CLASSPATH << File.join( path, 'conf' ) $CLASSPATH << File.join( path, 'dist', 'lib', 'grouper.jar' ) %w( edu.internet2.middleware.subject.SubjectNotFoundException edu.internet2.middleware.grouper.GrouperSession edu.internet2.middleware.grouper.MemberFinder edu.internet2.middleware.grouper.StemFinder ).each { |klass| java_import klass } end |