- Timestamp:
- 2011-07-18T21:05:06+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r24238 r24288 446 446 missingImageMagick(); 447 447 } 448 449 // Check for PDFBox 450 if (Gatherer.isGsdlRemote) { 451 DebugStream.println("Not checking for PDFBox."); 452 } 453 else { 454 String gs_dir = GS3 ? gsdl3_src_path : gsdl_path; 455 File pdfboxExtensionFolder = new File(gs_dir+File.separator+"ext"+File.separator+"pdf-box"); 456 if (!(pdfboxExtensionFolder.exists() && pdfboxExtensionFolder.isDirectory())) { 457 // The user doesn't have PDFBox, inform them of it 458 String zipExtension = Utility.isWindows() ? "zip" : "tar.gz"; 459 missingPDFBox(zipExtension, pdfboxExtensionFolder.getParent()); 460 } 461 } 462 448 463 449 464 if (Gatherer.isGsdlRemote) { … … 1272 1287 } 1273 1288 1289 /** Prints a message informing the user where they can get PDFBox from to process PDF files of v1.5 and greater */ 1290 static private void missingPDFBox(String zipExtension, String extFolder) { 1291 WarningDialog dialog = new WarningDialog("warning.MissingPDFBox", Dictionary.get("MissingPDFBox.Title"), Dictionary.get("MissingPDFBox.Message", new String[]{zipExtension, extFolder}), null, false); 1292 dialog.display(); 1293 dialog.dispose(); 1294 dialog = null; 1295 } 1296 1274 1297 /** Prints a warning message about missing a valid PERL path, which although not fatal pretty much ensures no collection creation/building will work properly in the GLI. */ 1275 1298 static private void missingPERL() {
Note:
See TracChangeset
for help on using the changeset viewer.