CWS-TOOLING: integrate CWS qadev37
2008-12-19 11:19:12 +0100 cn r265721 : #i97194 implement cwstouched in perl to avoid problems in python libary stuff 2008-12-19 11:07:50 +0100 cn r265720 : #i97194 implement cwstouched in perl to avoid problems in python libary stuff 2008-12-19 11:06:24 +0100 cn r265719 : #i97194 implement cwstouched in perl to avoid problems in python libary stuff 2008-12-17 12:37:50 +0100 lla r265595 : #i97357# us of illegal characters in file
This commit is contained in:
parent
6ae8d4333c
commit
3cf4f34511
3 changed files with 6 additions and 5 deletions
|
@ -51,7 +51,7 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
|
|||
{
|
||||
log.println("- next file is: ------------------------------");
|
||||
log.println(_sEntry);
|
||||
// TODO: prüfen, ob 'sEntry' ein gültiges Dokument ist?
|
||||
// TODO: check if 'sEntry' is a guilty document.
|
||||
File aFile = new File(_aParam.getInputPath());
|
||||
String sPath = _aParam.getInputPath();
|
||||
// problem here, isFile() checks also if the file exists, but a not existing file is not really a directory
|
||||
|
|
|
@ -78,14 +78,14 @@ public class CwsDataExchangeImpl implements CwsDataExchange {
|
|||
|
||||
final String[] outs = procHdl.getOutputText().split("\n");
|
||||
|
||||
final ArrayList moduleNames = new ArrayList();
|
||||
final ArrayList<String> moduleNames = new ArrayList<String>();
|
||||
boolean start = false;
|
||||
for (int i = 0; i < outs.length; i++) {
|
||||
final String line = outs[i];
|
||||
if (line.startsWith("cwstouched ends here")) {
|
||||
start = false;
|
||||
}
|
||||
if (start && !line.equals("")) {
|
||||
if (start && line.length() > 1) {
|
||||
moduleNames.add(line);
|
||||
}
|
||||
if (line.startsWith("cwstouched starts here")) {
|
||||
|
|
|
@ -338,20 +338,21 @@ public class ProcessHandler {
|
|||
ow = (OfficeWatcher) param.get(PropertyName.OFFICE_WATCHER);
|
||||
}
|
||||
|
||||
while (changedText && !this.isFinished()) {
|
||||
while (!this.isFinished() && changedText) {
|
||||
count++;
|
||||
if (ow != null) {
|
||||
ow.ping();
|
||||
}
|
||||
dbg("runCommand: waiting " + mTimeOut / 1000 + " seconds while command execution is ongoing... " + count);
|
||||
shortWait(mTimeOut);
|
||||
//waitFor(mTimeOut);
|
||||
|
||||
if (ow != null) {
|
||||
ow.ping();
|
||||
}
|
||||
// check for changes in the output stream. If there are no changes, the process maybe hangs
|
||||
if (!this.isFinished()) {
|
||||
if (this.getOutputText().equals(memText)) {
|
||||
if (this.getOutputText().length() == memText.length()) {
|
||||
changedText = false;
|
||||
dbg("runCommand Could not detect changes in output stream!!!");
|
||||
|
||||
|
|
Loading…
Reference in a new issue