Kaydet (Commit) da60a7cf authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS qadev26 (1.7.2); FILE MERGED

2006/02/17 10:19:13 lla 1.7.2.3: #131489# cleanups
2006/02/14 15:06:24 lla 1.7.2.2: #131199#
2006/01/30 10:42:03 lla 1.7.2.1: #130750# handle cancel request
üst 734c67d5
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: ConvWatchStarter.java,v $ * $RCSfile: ConvWatchStarter.java,v $
* *
* $Revision: 1.7 $ * $Revision: 1.8 $
* *
* last change: $Author: obo $ $Date: 2006-01-19 14:17:01 $ * last change: $Author: vg $ $Date: 2006-05-17 13:27:52 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -209,6 +209,11 @@ public class ConvWatchStarter extends EnhancedComplexTestCase ...@@ -209,6 +209,11 @@ public class ConvWatchStarter extends EnhancedComplexTestCase
{ {
assure("Must quit", false); assure("Must quit", false);
} }
if (aGTA.cancelRequest())
{
return;
}
initMember(); initMember();
String sBuildID = aGTA.getBuildID(); String sBuildID = aGTA.getBuildID();
...@@ -228,6 +233,7 @@ public class ConvWatchStarter extends EnhancedComplexTestCase ...@@ -228,6 +233,7 @@ public class ConvWatchStarter extends EnhancedComplexTestCase
File aInputPath = new File(m_sInputPath); File aInputPath = new File(m_sInputPath);
if (aInputPath.isDirectory()) if (aInputPath.isDirectory())
{ {
// check a whole directory
String fs = System.getProperty("file.separator"); String fs = System.getProperty("file.separator");
// a whole directory // a whole directory
FileFilter aFileFilter = aGTA.getFileFilter(); FileFilter aFileFilter = aGTA.getFileFilter();
...@@ -265,16 +271,21 @@ public class ConvWatchStarter extends EnhancedComplexTestCase ...@@ -265,16 +271,21 @@ public class ConvWatchStarter extends EnhancedComplexTestCase
// NameHelper aNameContainer = new NameHelper(m_sOutputPath, sNewSubDir, FileHelper.getBasename(sEntry)); // NameHelper aNameContainer = new NameHelper(m_sOutputPath, sNewSubDir, FileHelper.getBasename(sEntry));
// aNameContainer.print(); // aNameContainer.print();
if (aGTA.checkIfUsable(sEntry)) if (aGTA.checkIfUsableDocumentType(sEntry))
{ {
runGDCWithStatus(HTMLoutput, LISToutput, sEntry, sNewOutputPath, sNewReferencePath, sNewDiffPath, sNewSubDir); runGDCWithStatus(HTMLoutput, LISToutput, sEntry, sNewOutputPath, sNewReferencePath, sNewDiffPath, sNewSubDir);
} }
if (aGTA.cancelRequest())
{
break;
}
} }
} }
} }
else else
{ {
if (aGTA.checkIfUsable(m_sInputPath)) // check exact name
if (aGTA.checkIfUsableDocumentType(m_sInputPath))
{ {
runGDCWithStatus(HTMLoutput, LISToutput, m_sInputPath, m_sOutputPath, m_sReferencePath, m_sDiffPath, ""); runGDCWithStatus(HTMLoutput, LISToutput, m_sInputPath, m_sOutputPath, m_sReferencePath, m_sDiffPath, "");
} }
...@@ -318,7 +329,7 @@ public class ConvWatchStarter extends EnhancedComplexTestCase ...@@ -318,7 +329,7 @@ public class ConvWatchStarter extends EnhancedComplexTestCase
catch(ConvWatchCancelException e) catch(ConvWatchCancelException e)
{ {
assure(e.getMessage(), false, true); assure(e.getMessage(), false, true);
sStatusRunThrough = "CANCELED, FAILED"; sStatusRunThrough = "CANCELLED, FAILED";
sStatusMessage = e.getMessage(); sStatusMessage = e.getMessage();
DB.reallyfailedFile(aGTA.getDBInfoString(), _sInputFile); DB.reallyfailedFile(aGTA.getDBInfoString(), _sInputFile);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment