Subversion Repositories DevTools

Rev

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

Rev 4041 Rev 4123
Line 249... Line 249...
249
    {
249
    {
250
        File flag = new File( destination, filename );
250
        File flag = new File( destination, filename );
251
        found = flag.exists();
251
        found = flag.exists();
252
        if ( !found )
252
        if ( !found )
253
        {
253
        {
-
 
254
              try
-
 
255
              {
-
 
256
                String files;
-
 
257
                File folder = new File(destination);
-
 
258
                File[] listOfFiles = folder.listFiles();
-
 
259
                if ( listOfFiles == null )
-
 
260
                {
-
 
261
                  Log( "published. Destination not a dir: " + destination, fatal );
-
 
262
                }
-
 
263
                else
-
 
264
                {
-
 
265
 
-
 
266
                  for (int i = 0; i < listOfFiles.length; i++) 
-
 
267
                  {
-
 
268
                    if (listOfFiles[i].isFile())
-
 
269
                    {
-
 
270
                      files = listOfFiles[i].getName();
-
 
271
                      Log("published. DirContent:" + files , warn);
-
 
272
                    }
-
 
273
                  }
-
 
274
                }
-
 
275
              }
-
 
276
              catch( Exception e )
-
 
277
              {
-
 
278
                Log( "published. Display files caught Exception:" + e.getMessage(), fatal );
-
 
279
              }
-
 
280
              
-
 
281
 
254
            Thread.sleep(500);
282
           Thread.sleep(500);
255
           Log("published. Wait for " + filename + ".(" + ii +")" , warn);
283
           Log("published. Wait for " + filename + ".(" + ii +")" , warn);
256
        }
284
        }
257
    }
285
    }
258
 
286
 
259
    if ( found )
287
    if ( found )