Reorganisation of Java packages and directories. ParcelDescriptor and support
classes are now part of ScriptFramework.jar
This commit is contained in:
Tomas O'Connor
2003-09-10 09:45:56 +00:00
parent 980aa9b06c
commit b9dcccf6de
10 changed files with 48 additions and 20 deletions

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: CommandLineTools.java,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: toconnor $ $Date: 2003-03-14 11:06:40 $
* last change: $Author: toconnor $ $Date: 2003-09-10 10:45:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,9 +66,12 @@ import java.util.Hashtable;
import java.util.Enumeration;
import java.util.StringTokenizer;
import com.sun.star.script.framework.browse.ScriptEntry;
import com.sun.star.script.framework.browse.ParcelDescriptor;
import org.openoffice.idesupport.zip.ParcelZipper;
import org.openoffice.idesupport.xml.ParcelDescriptor;
import org.openoffice.idesupport.filter.AllFilesFilter;
import com.sun.star.script.framework.browse.XMLParserFactory;
import org.openoffice.idesupport.*;
public class CommandLineTools {
@@ -79,6 +82,20 @@ public class CommandLineTools {
CommandLineTools driver = new CommandLineTools();
Command command = driver.parseArgs(args);
// Get the URL for the Office DTD directory and pass it to the
// XMLParserFactory so that Office xml files can be parsed
try {
SVersionRCFile sv = SVersionRCFile.createInstance();
String office = sv.getDefaultVersion().getPath();
OfficeInstallation oi = new OfficeInstallation(office);
String url = oi.getURL("share/dtd/officedocument/1_0/");
XMLParserFactory.setOfficeDTDURL(url);
}
catch (IOException ioe) {
System.err.println("Error getting Office DTD directory");
}
if (command == null)
driver.printUsage();
else {