Subversion Repositories DevTools

Rev

Rev 2541 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2541 Rev 4041
Line 236... Line 236...
236
    else
236
    else
237
    {
237
    {
238
      filename += machtype;
238
      filename += machtype;
239
    }
239
    }
240
    
240
    
241
    File flag = new File( destination, filename );
-
 
242
 
-
 
243
 
-
 
244
    //
241
    //
245
    //  Due to NFS caching of small file requests the file may take
242
    //  Due to NFS caching of small file requests the file may take
246
    //  a few seconds to appear. Try several times
243
    //  a few seconds to appear. Try several times
-
 
244
    //    5 seconds does not appear to be enough
-
 
245
    //    Bumped to 60 seconds: 23-Sep-2013
247
    //
246
    //
248
    boolean found = false;
247
    boolean found = false;
249
    for ( int ii = 1; ii < 10 && !found; ii++)
248
    for ( int ii = 0; ii < (60*2) && !found; ii++)
250
    {
249
    {
-
 
250
        File flag = new File( destination, filename );
251
        found = flag.exists();
251
        found = flag.exists();
252
        if ( !found )
252
        if ( !found )
253
        {
253
        {
254
            Thread.sleep(500);
254
            Thread.sleep(500);
-
 
255
           Log("published. Wait for " + filename + ".(" + ii +")" , warn);
255
        }
256
        }
256
    }
257
    }
257
 
258
 
258
    if ( found )
259
    if ( found )
259
    {
260
    {
260
      retVal = "yes";
261
      retVal = "yes";
261
      Log("published " + flag.getName() + " exists", warn);
262
      Log("published " + filename + " exists", warn);
262
    }
263
    }
263
    else
264
    else
264
    {
265
    {
265
      Log("published " + flag.getName() + " does not exist", warn);
266
      Log("published " + filename + " does not exist", warn);
266
    }
267
    }
267
 
268
 
268
    return retVal;
269
    return retVal;
269
  }
270
  }
270
 
271