From: <raj...@us...> - 2008-09-08 03:59:54
|
Revision: 12222 http://cdk.svn.sourceforge.net/cdk/?rev=12222&view=rev Author: rajarshi Date: 2008-09-08 03:59:52 +0000 (Mon, 08 Sep 2008) Log Message: ----------- More robustness checks Modified Paths: -------------- cdk/trunk/tools/nightly.py Modified: cdk/trunk/tools/nightly.py =================================================================== --- cdk/trunk/tools/nightly.py 2008-09-08 03:13:15 UTC (rev 12221) +++ cdk/trunk/tools/nightly.py 2008-09-08 03:59:52 UTC (rev 12222) @@ -1489,16 +1489,18 @@ resultTable.addCell("<a href=\"http://java.sun.com/j2se/javadoc/doccheck/index.html\">DocCheck</a> Results:") if successDoccheck: print ' Generating DocCheck section' - shutil.copytree('%s/reports/javadoc' % (nightly_repo), - '%s/javadoc' % (nightly_web)) - subdirs = os.listdir('%s/reports/javadoc' % (nightly_repo)) - subdirs.sort() - count = 1 - s = '' - for dir in subdirs: - s = s+"<a href=\"javadoc/%s/\">%s</a>\n" % (dir, dir) - if count % per_line == 0: s += "<br>" - count += 1 + + if os.path.exists(os.path.join(nightly_repo, 'reports', 'javadoc')): + shutil.copytree(os.path.join(nightly_repo, 'reports', 'javadoc'), + os.path.join(nightly_web, 'javadoc')) + subdirs = os.listdir(os.path.join(nightly_repo, 'reports', 'javadoc')) + subdirs.sort() + count = 1 + s = '' + for dir in subdirs: + s = s+"<a href=\"javadoc/%s/\">%s</a>\n" % (dir, dir) + if count % per_line == 0: s += "<br>" + count += 1 resultTable.addCell(s) else: resultTable.addCell("<b>FAILED</b>", klass="tdfail") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |