Changeset 10367
- Timestamp:
- 2005-08-01T12:10:30+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r10364 r10367 132 132 } 133 133 134 // Set the Greenstone path and collect directory specially when running with a remote Greenstone 134 // If a gliserver URL has been specified, we're using remote building 135 if (go.gliserver_url_string != null) { 136 isGsdlRemote = true; 137 cgiBase = go.gliserver_url_string.substring(0, go.gliserver_url_string.lastIndexOf('/') + 1); 138 139 // With remote building we use our own collect directory, since we can't use the Greenstone one 140 setCollectDirectoryPath(getGLIUserDirectoryPath() + "collect" + File.separator); 141 } 142 143 // Set the Greenstone path specially when running with a remote Greenstone 135 144 if (isGsdlRemote) { 136 145 go.gsdl_path = getGLIUserDirectoryPath(); 137 setCollectDirectoryPath(go.gsdl_path + "collect" + File.separator);138 146 } 139 147 -
trunk/gli/src/org/greenstone/gatherer/GathererApplet.java
r10363 r10367 118 118 // Set some global variables so we know how we're running 119 119 Gatherer.isApplet = true; 120 Gatherer.isGsdlRemote = true; 121 String library_cgi = fullLibraryURL(getParameter("gwcgi")); 122 Gatherer.cgiBase = library_cgi.substring(0, library_cgi.lastIndexOf('/') + 1); 120 String library_url_string = fullLibraryURL(getParameter("gwcgi")); 121 String gliserver_url_string = library_url_string.substring(0, library_url_string.lastIndexOf('/') + 1) + "gliserver"; 123 122 124 123 // String debug_param = getParameter("debug"); … … 127 126 // } 128 127 129 String[] args = { "-g sdl", gli_user_directory.toString(),130 "-library_url", library_ cgi,128 String[] args = { "-gliserver_url", gliserver_url_string, 129 "-library_url", library_url_string, 131 130 }; 132 131 -
trunk/gli/src/org/greenstone/gatherer/GetOpt.java
r10330 r10367 40 40 public String collect_directory_path = null; 41 41 public String filename = null; 42 public String gliserver_url_string = null; 42 43 public String gsdl_path = null; 43 44 public String gsdl3_path = null; … … 189 190 library_url_string = argument_value; 190 191 } 192 // Specify the URL to the gliserver CGI script for remote collection building 193 else if (argument_name.equals(StaticStrings.GLISERVER_URL_ARGUMENT)) { 194 gliserver_url_string = argument_value; 195 } 191 196 // Parse the path to PERL. If not provided it assumes 192 197 // perl should be availble on the PATH. -
trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java
r10330 r10367 113 113 static final public String FORMAT_STR = "format"; 114 114 static final public String GLI_ATTRIBUTE = "gli"; 115 static final public String GLISERVER_URL_ARGUMENT = "-gliserver_url"; 115 116 static final public String GREATER_THAN_CHARACTER = ">"; 116 117 static final public String GSDL_ARGUMENT = "-gsdl";
Note:
See TracChangeset
for help on using the changeset viewer.