Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once( $_SERVER['DOCUMENT_ROOT'] . "/birt/downloads/common/config.php");
- require "download.inc";
- global $viewer;
- global $birtHome;
- global $buildPath;
- global $countR;
- $PagePart = new PagePart();
- readLogs( true );
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <?php
- /* Set Page Level Meta Details */
- $metaTitle = "Download";
- $metaKeywords = "Eclipse,BIRT,Java,Java EE,Web,RCP,Data,Visualization,Reports,Reporting,Embed,Rich-Client,Dashboards";
- $metaAuthor = "";
- $metaDescription = "BIRT is an open source technology platform used to create data visualizations and reports that can be embedded into rich client and web applications.";
- $ogTitle = "Eclipse BIRT Project";
- $ogImage = "http://www.eclipse.org/birt/img/logo/Birt-logo.png";
- $ogDescription = "BIRT is an open source technology platform used to create data visualizations and reports that can be embedded into rich client and web applications.";
- //only use following if you know what you are doing - else just leave them as is.
- $robotsIndex = "index"; // ** *Only usable values are 'index', 'noindex'
- $robotsFollow = "follow"; // ***Only usable values are 'follow', 'nofollow'
- $canonicalTag = ""; //this is a canonical tag used for duplicate content *** DO NOT USE UNLESS YOU KNOW WHAT YOU ARE DOING *** Default is blank! ex:http://www.actuate.com/products/
- # Generate Meta Info
- echo $PagePart->getMetaInfo($metaTitle, $metaKeywords, $metaAuthor, $metaDescription, $ogTitle, $ogImage, $ogDescription, $robotsIndex, $robotsFollow, $canonicalTag);
- $count = count($builds[RELEASE_BUILD][BUILD_NAME]);
- $bld = $builds[RELEASE_BUILD][BUILD_NAME][$count - 1];
- $bld_r = str_replace( "_", ".", $bld );
- $defaultBuildDir = $builds[RELEASE_BUILD][BUILD_DIR][$count - 1];
- $buildDir = $_GET['build'];
- if ($buildDir === "" || $buildDir === null){
- $buildDir = $defaultBuildDir;
- }
- function verifyBuild( $builds, $buildparm )
- {
- $rtn = false;
- $countR = count($builds[RELEASE_BUILD][BUILD_DIR]);
- for ($i = 0; $i < $countR; $i++)
- {
- if( $buildparm == $builds[RELEASE_BUILD][BUILD_DIR][$i] )
- {
- $rtn = true;
- break;
- }
- }
- if( !$rtn ){
- $countR = count($builds[STABLE_BUILD][BUILD_DIR]);
- for ($i = 0; $i < $countR; $i++)
- {
- if( $buildparm == $builds[STABLE_BUILD][BUILD_DIR][$i] )
- {
- $rtn = true;
- break;
- }
- }
- }
- if( !$rtn ){
- $countR = count($builds[MILESTONE_BUILD][BUILD_DIR]);
- for ($i = 0; $i < $countR; $i++)
- {
- if( $buildparm == $builds[MILESTONE_BUILD][BUILD_DIR][$i] )
- {
- $rtn = true;
- break;
- }
- }
- }
- if( !$rtn ){
- $countR = count($builds[NIGHTLY_BUILD][BUILD_DIR]);
- for ($i = 0; $i < $countR; $i++)
- {
- if( $buildparm == $builds[NIGHTLY_BUILD][BUILD_DIR][$i] )
- {
- $rtn = true;
- break;
- }
- }
- }
- return( $rtn );
- }
- $tstbuild = verifyBuild( $builds, $buildDir );
- if ( $tstbuild ){
- // TODO: Do latest release if none specified.
- $buildPath = "drops/" . $buildDir;
- $iniFile = $buildPath . "/build.ini";
- $buildInfo = parse_ini_file( $iniFile );
- $fileTimeStamp = filemtime( $iniFile );
- $buildName = $buildInfo[ "buildName" ];
- $daily_status = $buildPath . "/daily_build_report-" . $buildName . ".html";
- $psf_file = $buildPath . "/birt_psf.zip";
- $build_directory = $buildPath . "/directory.txt";
- if ( $buildName == "" )
- $buildName = "Unnamed";
- $buildType = $buildInfo[ "buildType" ];
- $buildTypeName = "";
- switch ( $buildType )
- {
- case 'N': $buildTypeName = "Nightly"; break;
- case 'M': $buildTypeName = "Milestone"; break;
- case 'R': $buildTypeName = "Release"; break;
- case 'S': $buildTypeName = "Stable"; break;
- }
- $buildDate = $buildInfo[ "buildDate" ];
- $dateName = $buildDate;
- if ( preg_match( "/([0-9]*)-([0-9]*)-([0-9]*) /", $buildDate, $match ) )
- {
- //echo $match[1] . " " . $match[2] . " " . $match[3] . "\n";
- $timeStamp = mktime( 0, 0, 0, $match[2], $match[3], $match[1] );
- $dateName = date( "F j, Y", $timeStamp );
- }
- $hasDesigner = $buildInfo[ "designer" ] != "";
- $hasAllInOne = $buildInfo[ "allInOne" ] != "";
- $hasRcp = $buildInfo[ "rcp" ] != "";
- $hasEngine = $buildInfo[ "engine" ] != "";
- $hasRuntimeosgi = $buildInfo[ "runtimeosgi" ] != "";
- $hasChart = $buildInfo[ "chart" ] != "";
- $hasSamples = $buildInfo[ "samples" ] != "";
- $hasTests = $buildInfo[ "tests" ] != "";
- $hasDb = $buildInfo [ "database" ] != "";
- $hasSDK = $buildInfo [ "reportFrameworkSdk" ] != "";
- $hasAllInOneLinux = $buildInfo[ "allInOneLinux" ] != "";
- $haschartNLpack1 = $buildInfo [ "chartNLpack1" ] != "";
- $hasruntimeNLpack1 = $buildInfo [ "runtimeNLpack1" ] != "";
- $hasframeworkNLpack1 = $buildInfo [ "frameworkNLpack1" ] != "";
- $hasrcpNLpack1 = $buildInfo [ "rcpNLpack1" ] != "";
- $hasallInOneNLpack1 = $buildInfo [ "allInOneNLpack1" ] != "";
- $haswtpSdk = $buildInfo [ "wtpSdk" ] != "";
- $hasbirtSource = $buildInfo [ "birtSource" ] != "";
- $hasbirtDTP = $buildInfo [ "birtDTP" ] != "";
- $haseclipseVersion = $buildInfo [ "eclipseVersion" ] != "";
- $hasdtpVersion = $buildInfo [ "dtpVersion" ] != "";
- $hasemfVersion = $buildInfo [ "emfVersion" ] != "";
- $hasgefVersion = $buildInfo [ "gefVersion" ] != "";
- $haswtpVersion = $buildInfo [ "wtpVersion" ] != "";
- $hasupdate = $buildInfo [ "birtP2Repo" ] != "";
- function buildTable( $proj )
- {
- global $birtPath;
- global $buildInfo;
- global $buildPath;
- $rtn = "";
- $ok = $buildInfo[ $proj . "OK" ];
- if ( $ok )
- $icon = "OK.gif";
- else
- $icon = "FAIL.gif";
- $baseName = $buildInfo[ $proj ];
- if ( $proj == "allInOneLinux" )
- {
- $rtn = $rtn . "<table border='0' bordercolor='#999999' cellpadding='0' cellspacing='2' width='100%'><tbody><tr><td align='right' valign='top' width='15%'>";
- $rtn = $rtn . "<div align='left'><b>Availability</b></div></td><td width='15%'><b>Platform</b></td><td width='70%'><b>Download</b></td></tr><tr><td><div align='left'>";
- $rtn = $rtn . "<img src='$icon'></div></td><td>Linux</td><td>";
- } else if ( $proj == "allInOne" || $proj == "rcp" ) {
- $rtn = $rtn . "<table border='0' bordercolor='#999999' cellpadding='0' cellspacing='2' width='100%'><tbody><tr><td align='right' valign='top' width='15%'>";
- $rtn = $rtn . "<div align='left'><b>Availability</b></div></td><td width='15%'><b>Platform</b></td><td width='70%'><b>Download</b></td></tr>";
- $rtn = $rtn . "<tr><td><div align='left'><img src='$icon'></div></td><td>Windows</td><td>";
- } else {
- $rtn = $rtn . "<table border='0' bordercolor='#999999' cellpadding='0' cellspacing='2' width='100%'><tbody><tr><td align='right' valign='top' width='15%'>";
- $rtn = $rtn . "<div align='left'><b>Availability</b></div></td><td width='15%'><b>Platform</b></td><td width='70%'><b>Download</b></td></tr>";
- $rtn = $rtn . "<tr><td><div align='left'><img src='$icon'></div></td><td>All</td><td>";
- }
- $basePath = $buildPath . "/" . $baseName;
- if ( $proj == "allInOneLinux" )
- {
- $fileName = $basePath . ".tar.gz";
- } else {
- $fileName = $basePath . ".zip";
- }
- if ( $ok && file_exists( $fileName ) )
- {
- if ( $proj == "allInOneLinux" )
- {
- $rtn = $rtn . "<a href='http://www.eclipse.org/downloads/download.php?file=/birt/downloads/$buildPath/$baseName.tar.gz'>$baseName.tar.gz</a>";
- } else{
- $rtn = $rtn . "<a href='http://www.eclipse.org/downloads/download.php?file=/birt/downloads/$buildPath/$baseName.zip'>$baseName.zip</a>";
- }
- }
- else
- {
- $rtn = $rtn . "None";
- }
- $fileName = $basePath . ".md5";
- if ( $ok && file_exists( $fileName ) )
- {
- $rtn = $rtn . " (<a href='$buildPath/$baseName.md5'>md5</a>)";
- }
- $rtn = $rtn . "</td></tr></tbody></table>";
- return( $rtn);
- }
- function showLog( $display, $name )
- {
- global $buildPath;
- $logName = $buildPath . "/" . $name . "_build_log.txt";
- if ( file_exists( $logName ) )
- return( bullet( "$display subsystem log", "$logName" ));
- else
- return(bullet( "$display subsystem log not available" ));
- }
- function checkLink($link=0)
- {
- //$fp = @fopen($link,"r");
- //if ($fp)
- //{
- // return TRUE;
- //}
- //else
- //{
- return FALSE;
- //}
- }
- $projVersions = "";
- if( $haseclipseVersion ){
- $projVersions = $projVersions . "<h2 class='topic-section-header padding-top-small'>Eclipse Project Dependencies</h2>
- <p>BIRT has dependencies on the following Eclipse projects. In certain downloads, such as the all-in-one, these are already included,
- but in others, such as the framework, you will be required to download them.<br /><br />";
- $projVersions = $projVersions . "<a href='http://download.eclipse.org/eclipse/downloads/index.html'> Eclipse Version " . substr( $buildInfo [ "eclipseVersion" ],0,5) . " SDK</a><br />";
- $projVersions = $projVersions . "<a href='http://www.eclipse.org/datatools/downloads.php'> DTP Version " . substr($buildInfo [ "dtpVersion" ],0,6) . "</a><br />";
- $projVersions = $projVersions . "<a href='http://www.eclipse.org/modeling/emf/downloads/?project=emf'> EMF Version " . substr($buildInfo [ "emfVersion" ],0,5) . " EMF+XSD</a></br />";
- $projVersions = $projVersions . "<a href='http://www.eclipse.org/gef/downloads/'> GEF Version " . substr($buildInfo [ "gefVersion" ],0,5) . " Runtime</a><br />";
- $projVersions = $projVersions . "<a href='http://download.eclipse.org/webtools/downloads/'> WTP Version " . substr($buildInfo [ "wtpVersion" ],0,5) . "</a><br /></p>";
- }
- $html_allinone = "";
- if ( $hasAllInOne )
- {
- $html_allinone = "<h2 class='topic-section-header padding-top-small'>Report Designer Full Eclipse Install</h2>
- <p>This Download includes the BIRT Reporting Framework, Eclipse
- SDK, GEF and EMF and Axis downloads. It includes everything you need to get started.
- </p>";
- $html_allinone = $html_allinone . buildTable( "allInOne" ) . "<br>" ;
- }
- $html_allinonelinux = "";
- if ( $hasAllInOneLinux )
- {
- $html_allinonelinux = "<h2 class='topic-section-header padding-top-small'>Report Designer Full Eclipse Install for Linux</h2>
- <p>This Download includes the BIRT Reporting Framework, Eclipse
- SDK, GEF and EMF and Axis downloads. It includes everything you need to get started.
- </p>";
- $html_allinonelinux = $html_allinonelinux . buildTable( "allInOneLinux" ) . "<br>" ;
- }
- $html_designer = "";
- if ( $hasDesigner )
- {
- $html_designer = "<h2 class='topic-section-header padding-top-small'>Report Designer</h2>
- <p>The BIRT designer is a set Eclipse plugins that lets you build reports
- as a perspective from within Eclipse.</p>";
- $html_designer = $html_designer . buildTable( "designer" ) . "<br>" ;
- }
- $html_rcp = "";
- if ( $hasRcp )
- {
- $html_rcp = "<h2 class='topic-section-header padding-top-small'>RCP Report Designer</h2>
- <p>The BIRT RCP Report Designer is an example of deploying BIRT using
- the Eclipse Rich Client Platform (RCP) technology. This provides a simplified report designer without
- the additional perspectives in the standard Eclipse platform.</p>";
- $html_rcp = $html_rcp . buildTable( "rcp" ) . "<br>" ;
- }
- $html_dtpint = "";
- if ( $hasbirtDTP )
- {
- $html_dtpint = "<h2 class='topic-section-header padding-top-small'>BIRT/DTP Integration</h2>
- <p>Includes minimal DTP Plugins that BIRT Requires if installing the Designer/Framework package. These are included in the all-in-one install by default.</p>";
- $html_dtpint = $html_dtpint . buildTable( "birtDTP" ) . "<br>" ;
- }
- $html_sdk = "";
- if ( $hasSDK )
- {
- $html_sdk = "<h2 class='topic-section-header padding-top-small'>BIRT SDK</h2>
- <p>Includes the source code for the BIRT plugins, docs, and BIRT Examples.</p>";
- $html_sdk = $html_sdk . buildTable( "reportFrameworkSdk" ) . "<br>" ;
- }
- $html_engine = "";
- if ( $hasEngine )
- {
- $html_engine = "<h2 class='topic-section-header padding-top-small'>Report Engine</h2>
- <p>Install the report engine in your Java EE application server to run
- BIRT reports over the web. A preview engine is included with the
- Report Designer download.</p>";
- $html_engine = $html_engine . buildTable( "engine" ) . "<br>" ;
- }
- $html_osgiengine = "";
- if ( $hasRuntimeosgi )
- {
- $html_osgiengine = "<h2 class='topic-section-header padding-top-small'>Report Engine OSGi deployment</h2>
- <p>If you wish to deploy the BIRT runtime as an OSGi runtime, use this download.</p>";
- $html_osgiengine = $html_osgiengine . buildTable( "runtimeosgi" ) . "<br>" ;
- }
- $html_chart = "";
- if ( $hasChart )
- {
- if( substr_count($buildName,"2.2") > 0 ){
- $html_chart = "<h2 class='topic-section-header padding-top-small'>Chart Engine</h2>
- <p>The chart engine is a standalone library that lets you add charts to your Java application independently of BIRT reports.
- This download contains runtime plugins for the Eclipse environment, runtime jars for Java applications,
- a WAR file for Web deployment, and SDK plugins that include source code, examples, docs, and a web tools extension.
- </p>";
- }else{
- $html_chart = "<h2 class='topic-section-header padding-top-small'>Chart Engine</h2>
- <p>The chart engine is a stand alone library that lets you add charts
- to your Java application. Download this only if you want to use
- charts independently of of BIRT.</p>";
- }
- }
- $html_chart = $html_chart . buildTable( "chart" ) . "<br>" ;
- $html_wtpSdk = "";
- if ( $haswtpSdk )
- {
- $html_wtpSdk = "<h2 class='topic-section-header padding-top-small'>BIRT Web Tools Integration</h2>
- <p>This download contains the plugins required to use the BIRT Web Project Wizard from within a Web Tools Project.
- The source for the plugins is also included.</p>";
- $html_wtpSdk = $html_wtpSdk . buildTable( "wtpSdk" ) . "<br>" ;
- }
- $html_birtSource = "";
- if ( $hasbirtSource )
- {
- $html_birtSource = "<h2 class='topic-section-header padding-top-small'>BIRT Source Code</h2>
- <p>This download contains the source code for BIRT for this specific build. All source is in plugin format and can be imported into a workspace to build BIRT.
- Additional libraries may be needed. Generally these will be the required libraries for a standard BIRT installation for this version. The Data Tools Platform source code is not included. Download the source or binaries for these from the <a href='http://www.eclipse.org/datatools/downloads.html'>DTP project website</a>. </p>";
- $html_birtSource = $html_birtSource . buildTable( "birtSource" ) . "<br>" ;
- }
- $html_samples = "";
- if ( $hasSamples )
- {
- $html_samples = "<h2 class='topic-section-header padding-top-small'>Samples</h2>
- <p>Sample integration code for reports and charts. Download this if you
- want examples of how to extend BIRT.</p>";
- $html_samples = $html_samples . buildTable( "samples" ) . "<br>" ;
- }
- $html_test_suite = "";
- if ( $hasTests )
- {
- $html_test_suite = "<h2 class='topic-section-header padding-top-small'>Test Suites</h2>
- <p>Automated tests for BIRT functions. Download this if you are a developer and want to modify,
- build and perform regression testing against your modified version of BIRT.</p>";
- $html_test_suite = $html_test_suite . buildTable( "tests" ) . "<br>" ;
- }
- $html_db = "";
- if ( $hasDb )
- {
- $html_db = "<h2 class='topic-section-header padding-top-small'>Demo Database</h2>
- <p>Intended as a convenient way to get the Classic Cars sample data and database schema for use with
- your preferred database software, the demo database package includes sql and data files for defining
- and loading the database into Derby and MySQL. It does <i>not</i> include any BIRT software. Note
- that the sample database is already included in both the Designer and the RCP Designer packages.</p>";
- $html_db = $html_db . buildTable( "database" ) . "<br>" ;
- }
- $html_update = "";
- if ( $hasupdate )
- {
- $html_update = "<h2 class='topic-section-header padding-top-small'>Zipped P2 repository</h2>
- <p>This downloads includes the zipped p2 repository of BIRT bundles. It can be consumed by P2 to install BIRT features.
- </p>";
- $html_update = $html_update . buildTable( "birtP2Repo" ) . "<br>" ;
- }
- if (file_exists($build_directory)) {
- $html_logs = "";
- $html_logs = $html_logs . "<br><p><a href='$build_directory' target='_blank'>Map File</a></p>";
- }else{
- $html_logs = bulletList( PLAIN_ARROW_LIST );
- $html_logs = $html_logs . showLog( "Designer", "designer" );
- $html_logs = $html_logs . showLog( "Model", "model" );
- $html_logs = $html_logs . showLog( "Engine", "engine" );
- $html_logs = $html_logs . showLog( "Data", "data" );
- $html_logs = $html_logs . showLog( "Chart", "chart" );
- $html_logs = $html_logs . endList( );
- }
- $html_status = "";
- if (file_exists($daily_status)) {
- $html_status = "<h2 class='topic-section-header padding-top-small'>Build Status Report</h2>";
- $html_status = $html_status . "<br><p><a href='$daily_status' target='_blank'>Build Status Report</a></p>";
- }
- $html_psf = "";
- if (file_exists($psf_file)) {
- $html_psf = "<h2 class='topic-section-header padding-top-small'>Project Set File</h2>";
- $html_psf = $html_psf . "<br><p><a href='$psf_file' target='_blank'>Project Set File</a> - This file can be used to check out the source and build BIRT. For more details see the <a href='http://wiki.eclipse.org/BIRT/FAQ/Birt_Project#Q:_How_do_I_build_BIRT_using_the_PSF_File.3F'>BIRT Wiki</a>
- </p>";
- }
- # Paste your HTML content between the EOHTML markers!
- $html = <<<EOHTML
- <p>Build Date: $buildDate</p>
- <h2 class='topic-section-header padding-top-small'>Build Documentation</h2>
- <p><a href="http://www.eclipse.org/legal/epl/notice.php" target="_blank">License</a> - These downloads are provided under the eclipse.org Software User Agreement.<br />
- <a href="http://www.eclipse.org/birt/documentation/install.php">Install</a> - Install instructions for BIRT and the software it requires.<br />
- <a href="https://wiki.eclipse.org/BIRT_Project_Plan" target="_blank">Supported Platforms</a> - BIRT provides a single download that works on all supported platforms. See the Target Environments section of the Project Plan of your version for this information.<br />
- <a href="build_list.php">Other Builds</a> - Check for the latest builds and find general information about BIRT builds.<br />
- <a href="http://www.eclipse.org/babel/downloads.php" target="_blank">Language Packs</a> - Language packs available for BIRT through Babel.</p>
- $projVersions
- $html_allinone
- $html_allinonelinux
- $html_designer
- $html_rcp
- $html_dtpint
- $html_sdk
- $html_engine
- $html_osgiengine
- $html_chart
- $html_wtpSdk
- $html_birtSource
- $html_samples
- $html_test_suite
- $html_db
- $html_update
- <h2 class='topic-section-header padding-top-small'>Build Logs</h2>
- The following are the build logs created for this build.
- $html_logs
- $html_status
- $html_psf
- EOHTML;
- } else {
- $html = "<B>Error: This Build Does Not Exist</B><div style='height:525px;'></div>";
- }
- ?>
- </head>
- <body>
- <?php echo $PagePart->getAfterBody(); ?>
- <div style="background-color:#f4f4f4;">
- <div class="content-area">
- <div class="content-area-inner" style="padding-top:40px;">
- <div class="actu-eclipse-side-menu">
- <?php echo $PagePart->getSideMenu(); ?>
- </div>
- <div class="dev-main eclipse-main">
- <div class="eclipse-main-container">
- <h1 class="eclipse-title-main">All Downloads: BIRT <?php echo str_replace( "_", ".", $buildName ); ?></h1>
- <div class="topic-menu topic-menu-right">
- <div class="topic-menu-title">Section Contents</div>
- <ul>
- <li><a href="index.php#designer">BIRT Designer</a></li>
- <li><a href="index.php#runtime">BIRT Runtime</a></li>
- <li><a href="index.php#moredownloads">More Downloads</a>
- <ul>
- <li><a href="build.php?build=<?php echo $buildDir ?>">Full <?php echo str_replace( "_", ".", $buildName ); ?> Download Page</a></li>
- <li><a href="build_list.php">Recent Builds</a></li>
- <li><a href="http://archive.eclipse.org/birt/downloads/build_list.php">Archived Builds</a></li>
- </ul>
- </li>
- <li><a href="index.php#whatnow">What Now?</a></li>
- </ul>
- </div>
- <?php echo $html ?>
- </div>
- </div>
- </div>
- </div>
- <footer>
- <?php echo $PagePart->getFooter(); ?>
- </footer>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement