[10370] | 1 | /**
|
---|
| 2 | *############################################################################
|
---|
| 3 | * A component of the Greenstone Librarian Interface, part of the Greenstone
|
---|
| 4 | * digital library suite from the New Zealand Digital Library Project at the
|
---|
| 5 | * University of Waikato, New Zealand.
|
---|
| 6 | *
|
---|
| 7 | * Author: Michael Dewsnip, NZDL Project, University of Waikato, NZ
|
---|
| 8 | *
|
---|
| 9 | * Copyright (C) 2005 New Zealand Digital Library Project
|
---|
| 10 | *
|
---|
| 11 | * This program is free software; you can redistribute it and/or modify
|
---|
| 12 | * it under the terms of the GNU General Public License as published by
|
---|
| 13 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | * (at your option) any later version.
|
---|
| 15 | *
|
---|
| 16 | * This program is distributed in the hope that it will be useful,
|
---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | * GNU General Public License for more details.
|
---|
| 20 | *
|
---|
| 21 | * You should have received a copy of the GNU General Public License
|
---|
| 22 | * along with this program; if not, write to the Free Software
|
---|
| 23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 24 | *############################################################################
|
---|
| 25 | */
|
---|
| 26 |
|
---|
| 27 | package org.greenstone.gatherer;
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | import java.io.*;
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | /**
|
---|
| 34 | * This class contains static functions that only make sense when running with a local Greenstone.
|
---|
| 35 | * None of these functions should be called if the GLI is using a remote Greenstone.
|
---|
| 36 | */
|
---|
| 37 | public class LocalGreenstone
|
---|
| 38 | {
|
---|
| 39 | static private String gsdl_directory_path = null;
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 | static public String getBinScriptDirectoryPath()
|
---|
| 43 | {
|
---|
| 44 | return gsdl_directory_path + "bin" + File.separator + "script" + File.separator;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | static public String getDirectoryPath()
|
---|
| 49 | {
|
---|
| 50 | return gsdl_directory_path;
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 | static public String getTmpDirectoryPath()
|
---|
| 55 | {
|
---|
| 56 | return gsdl_directory_path + "tmp" + File.separator;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 | static public void setDirectoryPath(String gsdl_directory_path_arg)
|
---|
| 61 | {
|
---|
| 62 | gsdl_directory_path = gsdl_directory_path_arg;
|
---|
| 63 | }
|
---|
| 64 | }
|
---|