summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-02-05 11:56:12 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-02-05 11:56:12 +0000
commitfdb20ac81d5c06bf6e824bf1a963b8f6a437766e (patch)
treea42e34bded7fa8e7e02ad9e3bdadee2429c43e88 /transex3
parent8d437dc3723ea460fc3d7648f71b4c4b36f72910 (diff)
INTEGRATION: CWS l10ntooling10 (1.19.18); FILE MERGED
2008/01/04 13:11:03 ihi 1.19.18.1: #i84991# Fixed several nfs multi plattform build issues
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/xmlparse.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/transex3/source/xmlparse.cxx b/transex3/source/xmlparse.cxx
index dccd9c229d3f..65f698cd8cef 100644
--- a/transex3/source/xmlparse.cxx
+++ b/transex3/source/xmlparse.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: xmlparse.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: vg $ $Date: 2007-09-20 15:03:16 $
+ * last change: $Author: ihi $ $Date: 2008-02-05 12:56:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -277,12 +277,17 @@ BOOL XMLFile::Write( ByteString &aFilename )
if ( aFilename.Len()) {
// retry harder if there is a NFS problem,
- for( int x = 0 ; x < 200 ; x++ ){ // this looks strange...yes!
+ for( int x = 1 ; x < 3 ; x++ ){ // this looks strange...yes!
ofstream aFStream( aFilename.GetBuffer() , ios::out | ios::trunc );
if( !aFStream ) // From time to time the stream can not be opened the first time on NFS volumes,
{ // I wasn't able to track this down. I think this is an NFS issue .....
- cerr << "ERROR: - helpex - Can't write to tempfile " << aFilename.GetBuffer() << " No#" << x << "\n";
+ //cerr << "ERROR: - helpex - Can't write to tempfile " << aFilename.GetBuffer() << " No#" << x << "\n";
+#ifdef UNX
+ sleep( 3 );
+#else
+ _sleep( 3 );
+#endif
}
else
{
@@ -297,7 +302,7 @@ BOOL XMLFile::Write( ByteString &aFilename )
if( aFileStat.GetSize() < 1 )
{
//retry
- cerr << "WARNING: - helpex - Can't create file " << aFilename.GetBuffer() << " No#" << x << "\n";
+ //cerr << "WARNING: - helpex - Can't create file " << aFilename.GetBuffer() << " No#" << x << "\n";
aTarget.Kill();
}
else