* minor fix.
This commit is contained in:
parent
8912cb3940
commit
f24df9b029
|
@ -76,6 +76,7 @@ public class PackIn extends SvrProcess {
|
||||||
PackInHandler handler = new PackInHandler();
|
PackInHandler handler = new PackInHandler();
|
||||||
handler.set_TrxName(trxName);
|
handler.set_TrxName(trxName);
|
||||||
handler.setCtx(ctx);
|
handler.setCtx(ctx);
|
||||||
|
handler.setProcess(this);
|
||||||
SAXParserFactory factory = SAXParserFactory.newInstance();
|
SAXParserFactory factory = SAXParserFactory.newInstance();
|
||||||
SAXParser parser = factory.newSAXParser();
|
SAXParser parser = factory.newSAXParser();
|
||||||
String msg = "Start Parser";
|
String msg = "Start Parser";
|
||||||
|
@ -227,6 +228,7 @@ public class PackIn extends SvrProcess {
|
||||||
|
|
||||||
// impXML.setUpdateMode(args[7]);
|
// impXML.setUpdateMode(args[7]);
|
||||||
impXML.m_UpdateMode = args[7];
|
impXML.m_UpdateMode = args[7];
|
||||||
|
|
||||||
impXML.importXML(file, Env.getCtx(), null);
|
impXML.importXML(file, Env.getCtx(), null);
|
||||||
|
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
|
|
@ -136,12 +136,14 @@ public class PackInHandler extends DefaultHandler {
|
||||||
private List<Element> menus = new ArrayList<Element>();
|
private List<Element> menus = new ArrayList<Element>();
|
||||||
private List<DeferEntry> defer = new ArrayList<DeferEntry>();
|
private List<DeferEntry> defer = new ArrayList<DeferEntry>();
|
||||||
private Stack<Element> stack = new Stack<Element>();
|
private Stack<Element> stack = new Stack<Element>();
|
||||||
|
private PackIn packIn;
|
||||||
|
|
||||||
private void init() throws SAXException {
|
private void init() throws SAXException {
|
||||||
PackIn pack = new PackIn();
|
if (packIn == null)
|
||||||
packageDirectory = pack.m_Package_Dir;
|
packIn = new PackIn();
|
||||||
m_UpdateMode = pack.m_UpdateMode;
|
packageDirectory = packIn.m_Package_Dir;
|
||||||
m_DatabaseType = pack.m_Database;
|
m_UpdateMode = packIn.m_UpdateMode;
|
||||||
|
m_DatabaseType = packIn.m_Database;
|
||||||
File file = new File("");
|
File file = new File("");
|
||||||
SimpleDateFormat formatter_file = new SimpleDateFormat("yyMMddHHmmssZ");
|
SimpleDateFormat formatter_file = new SimpleDateFormat("yyMMddHHmmssZ");
|
||||||
SimpleDateFormat formatter_log = new SimpleDateFormat("MM/dd/yy HH:mm:ss");
|
SimpleDateFormat formatter_log = new SimpleDateFormat("MM/dd/yy HH:mm:ss");
|
||||||
|
@ -696,4 +698,11 @@ public class PackInHandler extends DefaultHandler {
|
||||||
startElement = b;
|
startElement = b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param packIn
|
||||||
|
*/
|
||||||
|
public void setProcess(PackIn packIn) {
|
||||||
|
this.packIn = packIn;
|
||||||
|
}
|
||||||
} // PackInHandler
|
} // PackInHandler
|
||||||
|
|
Loading…
Reference in New Issue