[ 1705184 ] System.out messages in 2pack
This commit is contained in:
parent
84de4e9352
commit
52b0db967b
|
@ -33,6 +33,7 @@ import java.util.Stack;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.stream.StreamResult;
|
import javax.xml.transform.stream.StreamResult;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
@ -116,7 +117,7 @@ public class PackInHandler extends DefaultHandler {
|
||||||
private int m_AD_Client_ID = 0;
|
private int m_AD_Client_ID = 0;
|
||||||
private int AD_Package_Imp_ID=0;
|
private int AD_Package_Imp_ID=0;
|
||||||
private int AD_Package_Imp_Inst_ID=0;
|
private int AD_Package_Imp_Inst_ID=0;
|
||||||
private CLogger log = CLogger.getCLogger("PackIn");
|
private CLogger log = CLogger.getCLogger(PackInHandler.class);
|
||||||
private OutputStream fw_document = null;
|
private OutputStream fw_document = null;
|
||||||
private TransformerHandler logDocument = null;
|
private TransformerHandler logDocument = null;
|
||||||
private StreamResult streamResult_document = null;
|
private StreamResult streamResult_document = null;
|
||||||
|
@ -648,8 +649,10 @@ public class PackInHandler extends DefaultHandler {
|
||||||
handler.endElement(m_ctx, e);
|
handler.endElement(m_ctx, e);
|
||||||
if (e.defer)
|
if (e.defer)
|
||||||
defer.add(new DeferEntry(e, false));
|
defer.add(new DeferEntry(e, false));
|
||||||
else if (!e.skip)
|
else if (!e.skip) {
|
||||||
System.out.println("Processed: " + e.getElementValue() + " - " + e.attributes.getValue(0));
|
if (log.isLoggable(Level.INFO))
|
||||||
|
log.info("Processed: " + e.getElementValue() + " - " + e.attributes.getValue(0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // endElement
|
} // endElement
|
||||||
|
@ -698,9 +701,11 @@ public class PackInHandler extends DefaultHandler {
|
||||||
}
|
}
|
||||||
if (d.element.defer)
|
if (d.element.defer)
|
||||||
defer.add(d);
|
defer.add(d);
|
||||||
else if (!d.startElement)
|
else if (!d.startElement) {
|
||||||
System.out.println("Processed: " + d.element.getElementValue() + " - "
|
if (log.isLoggable(Level.INFO))
|
||||||
+ d.element.attributes.getValue(0));
|
log.info("Processed: " + d.element.getElementValue() + " - "
|
||||||
|
+ d.element.attributes.getValue(0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int endSize = defer.size();
|
int endSize = defer.size();
|
||||||
if (startSize == endSize) break;
|
if (startSize == endSize) break;
|
||||||
|
@ -711,7 +716,8 @@ public class PackInHandler extends DefaultHandler {
|
||||||
for (DeferEntry d : defer) {
|
for (DeferEntry d : defer) {
|
||||||
if (d.startElement) {
|
if (d.startElement) {
|
||||||
count++;
|
count++;
|
||||||
System.out.println("Unresolved: " + d.element.getElementValue() + " - " + d.element.attributes.getValue(0) + ", " + d.element.unresolved);
|
if (log.isLoggable(Level.INFO))
|
||||||
|
log.info("Unresolved: " + d.element.getElementValue() + " - " + d.element.attributes.getValue(0) + ", " + d.element.unresolved);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new RuntimeException("Failed to resolve dependency for " + count + " elements.");
|
throw new RuntimeException("Failed to resolve dependency for " + count + " elements.");
|
||||||
|
|
|
@ -229,10 +229,6 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
recreateColumn = false;
|
recreateColumn = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if (tableName.equals("A_Depreciation") && columnName.equals("Processed")) {
|
|
||||||
System.out.println("A_Depreciation.Processed: " + recreateColumn);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
if (m_Column.save(getTrxName(ctx)) == true) {
|
if (m_Column.save(getTrxName(ctx)) == true) {
|
||||||
record_log(ctx, 1, m_Column.getName(), "Column", m_Column
|
record_log(ctx, 1, m_Column.getName(), "Column", m_Column
|
||||||
.get_ID(), AD_Backup_ID, Object_Status, "AD_Column",
|
.get_ID(), AD_Backup_ID, Object_Status, "AD_Column",
|
||||||
|
@ -343,14 +339,12 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
log.info(sql);
|
log.info(sql);
|
||||||
|
|
||||||
if (sql.indexOf(DB.SQLSTATEMENT_SEPARATOR) == -1) {
|
if (sql.indexOf(DB.SQLSTATEMENT_SEPARATOR) == -1) {
|
||||||
System.out.println(sql);
|
|
||||||
no = DB.executeUpdate(sql, false, trx.getTrxName());
|
no = DB.executeUpdate(sql, false, trx.getTrxName());
|
||||||
if (no == -1)
|
if (no == -1)
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR);
|
String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR);
|
||||||
for (int i = 0; i < statements.length; i++) {
|
for (int i = 0; i < statements.length; i++) {
|
||||||
System.out.println(statements[i]);
|
|
||||||
int count = DB.executeUpdate(statements[i], false,
|
int count = DB.executeUpdate(statements[i], false,
|
||||||
trx.getTrxName());
|
trx.getTrxName());
|
||||||
if (count == -1) {
|
if (count == -1) {
|
||||||
|
|
Loading…
Reference in New Issue