Skip to content

Commit

Permalink
HYDRA-455 updating paths in rakefiles to accommodate move
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingzumwalt committed May 19, 2011
1 parent e67bbaa commit 4059443
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'rake/clean'
require 'rubygems'
load 'tasks/rspec.rake'
load 'tasks/active_fedora.rake'
load 'lib/tasks/rspec.rake'

$: << 'lib'

Expand Down
12 changes: 7 additions & 5 deletions lib/tasks/active_fedora_dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ $: << 'lib'
desc "Hudson build"
task :hudson do
require 'jettywrapper'
project_root = File.expand_path("#{File.dirname(__FILE__)}/../../")

if (ENV['RAILS_ENV'] == "test")
Rake::Task["active_fedora:doc"].invoke
Rake::Task["active_fedora:configure_jetty"].invoke
jetty_params = {
:quiet => false,
:jetty_home => File.join(File.dirname(__FILE__),'..','jetty'),
:jetty_home => File.join(project_root,'jetty'),
:jetty_port => 8983,
:solr_home => File.expand_path(File.join(File.dirname(__FILE__),'..','jetty','solr')),
:fedora_home => File.expand_path(File.join(File.dirname(__FILE__),'..','jetty','fedora','default')),
:solr_home => File.expand_path(File.join(project_root,'jetty','solr')),
:fedora_home => File.expand_path(File.join(project_root,'jetty','fedora','default')),
:startup_wait=>30
}
error = Jettywrapper.wrap(jetty_params) do
Expand All @@ -35,7 +37,7 @@ namespace :active_fedora do
begin
require 'yard'
require 'yard/rake/yardoc_task'
project_root = File.expand_path("#{File.dirname(__FILE__)}/../")
project_root = File.expand_path("#{File.dirname(__FILE__)}/../../")
doc_destination = File.join(project_root, 'doc')

YARD::Rake::YardocTask.new(:doc) do |yt|
Expand Down Expand Up @@ -86,7 +88,7 @@ namespace :active_fedora do
require 'solrizer'
require 'solrizer-fedora'
require 'spec/samples/models/hydrangea_article'
ENV["FEDORA_HOME"]=File.expand_path(File.join(File.dirname(__FILE__),'..','jetty','fedora','default'))
ENV["FEDORA_HOME"]=File.expand_path(File.join(File.dirname(__FILE__),'..','..','jetty','fedora','default'))
retval = `$FEDORA_HOME/client/bin/fedora-ingest-demos.sh localhost 8983 fedoraAdmin fedoraAdmin http`
puts "loaded demo objects #{retval}"
ActiveFedora.init unless Thread.current[:repo]
Expand Down

0 comments on commit 4059443

Please sign in to comment.