backend/lib/AS_fop_external.rb
def path_to_fop_jar
      # On the Windows system tested, this is the branch (go up 5 levels and then into lib) expected to find the fop.jar file when running in prod mode.
      # The searching around with the other elsifs are a bit overkill, but added in to try to improve robustness
      if File.exists?("../../../../../lib/fop.jar")
        return "../../../../../lib"
      elsif File.exists?("../common/lib/fop.jar")
        return "../common/lib"
      elsif File.exists?("../lib/fop.jar")
        return "../lib"
      elsif File.exists?("../../lib/fop.jar")
        return "../../lib"
      elsif File.exists?("../../../lib/fop.jar")
        return "../../../lib"
      elsif File.exists?("../../../../lib/fop.jar")
        return "../../../../lib"
      elsif File.exists?("../../../../../../lib/fop.jar")
         return "../../../../../../lib"
      elsif File.exists?("lib/fop.jar")
        return "lib"
      else
        raise "fop.jar not found."
      end
    end
# path to fop.jar file could be a few different things, depending on whether server is running in dev or prod mode
path to fop.jar file could be a few different things, depending on whether server is running in dev or prod mode
path to fop . jar file could be a few different things depending on whether server is running in dev or prod mode
def path_to_fop_jar
      if File.exists?("../../../../../lib/fop.jar")
        return "../../../../../lib"
      elsif File.exists?("../common/lib/fop.jar")
        return "../common/lib"
      elsif File.exists?("../lib/fop.jar")
        return "../lib"
      elsif File.exists?("../../lib/fop.jar")
        return "../../lib"
      elsif File.exists?("../../../lib/fop.jar")
        return "../../../lib"
      elsif File.exists?("../../../../lib/fop.jar")
        return "../../../../lib"
      elsif File.exists?("../../../../../../lib/fop.jar")
         return "../../../../../../lib"
      elsif File.exists?("lib/fop.jar")
        return "lib"
      else
        raise "fop.jar not found."
      end
    end
def path_to_fop_jar if File . exists? ( "../../../../../lib/fop.jar" ) return "../../../../../lib" elsif File . exists? ( "../common/lib/fop.jar" ) return "../common/lib" elsif File . exists? ( "../lib/fop.jar" ) return "../lib" elsif File . exists? ( "../../lib/fop.jar" ) return "../../lib" elsif File . exists? ( "../../../lib/fop.jar" ) return "../../../lib" elsif File . exists? ( "../../../../lib/fop.jar" ) return "../../../../lib" elsif File . exists? ( "../../../../../../lib/fop.jar" ) return "../../../../../../lib" elsif File . exists? ( "lib/fop.jar" ) return "lib" else raise "fop.jar not found." end end
path to fop.jar file could be a few different things, depending on whether server is running in dev or prod mode
path to fop . jar file could be a few different things depending on whether server is running in dev or prod mode
# On the Windows system tested, this is the branch (go up 5 levels and then into lib) expected to find the fop.jar file when running in prod mode. # The searching around with the other elsifs are a bit overkill, but added in to try to improve robustness