getProjectCommon()); #***************************************************************************** # # template.php # # Author: Denis Roy # Date: 2005-06-16 # # Description: Type your page comments here - these are not sent to the browser # # #**************************************************************************** # # Begin: page-specific settings. Change these. $pageTitle = "Eclipse BIRT Home"; $pageKeywords = ""; $pageAuthor = ""; # Add page-specific Nav bars here # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3) # $Nav->addNavSeparator("My Page Links", "downloads.php"); # $Nav->addCustomNav("My Link", "mypage.php", "_self", 3); # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3); # End: page-specific settings # require "download.inc"; global $viewer; global $birtHome; global $buildPath; global $countR; readLogs(); #$countR = count($builds[RELEASE_BUILD][BUILD_DIR]); $buildDir = $_GET['build']; 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 . "
"; $rtn = $rtn . "
Availability
PlatformDownload
"; $rtn = $rtn . "
Linux"; } else if ( $proj == "allInOne" || $proj == "rcp" ) { $rtn = $rtn . ""; $rtn = $rtn . "
"; $rtn = $rtn . "
Availability
PlatformDownload
Windows"; } else { $rtn = $rtn . ""; $rtn = $rtn . "
"; $rtn = $rtn . "
Availability
PlatformDownload
All"; } $basePath = $buildPath . "/" . $baseName; if ( $proj == "allInOneLinux" ) { $fileName = $basePath . ".tar.gz"; } else { $fileName = $basePath . ".zip"; } if ( $ok && file_exists( $fileName ) ) { if ( $proj == "allInOneLinux" ) { $rtn = $rtn . "$baseName.tar.gz"; } else{ $rtn = $rtn . "$baseName.zip"; } } else { $rtn = $rtn . "None"; } $fileName = $basePath . ".md5"; if ( $ok && file_exists( $fileName ) ) { $rtn = $rtn . "  (md5)"; } $rtn = $rtn . "
"; 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; //} } $bl = bulletList(); $bl_lic = bullet( "License", "http://www.eclipse.org/legal/epl/notice.php" ); $ebl = endBullet(); $install_instructions = "http://www.eclipse.org/birt/phoenix/build/"; $install_instructions_version = "http://www.eclipse.org/birt/phoenix/build/" . "install_" . $buildType . $buildName . ".php"; //$install_instructions_version = "http://www.eclipse.org/birt/phoenix/build/" . "install_" . "R2_1_1" . ".php"; if ( checkLink( $install_instructions_version ) ){ $bl_install = bullet( "Install", $install_instructions_version , "_top" ); $bl_install_link = $install_instructions_version; }else{ $bl_install = bullet( "Install", $install_instructions , "_top" ); $bl_install_link = $install_instructions; } $bl_support = ""; $project_plan ="http://www.eclipse.org/birt/phoenix/project/project_plan_" . $buildType . $buildName . ".php#TargetOperatingEnvironments"; //$project_plan ="http://www.eclipse.org/birt/phoenix/project/project_plan_" . "R2_0_1" . ".php#TargetOperatingEnvironments"; if ( checkLink( $project_plan ) ){ $bl_support = bullet( "Supported Platforms",$project_plan, "_top" ); } $bl_other = bullet( "Other Builds", "build_list.php" ); $bl_lang = bullet( "Language Packs", "lang.php?build=" . $buildDir ); $projVersions = ""; if( $haseclipseVersion ){ $projVersions = $projVersions . "

Eclipse Project Dependencies

BIRT has dependencies on the following Eclipse projects. In certain downloads such as the Allinone these are already included, but in others such as the framework you will be required to download them.

"; if( $buildInfo [ "eclipseURL" ] != ""){ $projVersions = $projVersions . "
"; } } $html_allinone = ""; if ( $hasAllInOne ) { $html_allinone = "

Report Designer Full Eclipse Install

This Download includes the BIRT Reporting Framework, Eclipse SDK, GEF and EMF and Axis downloads. It includes everything you need to get started.

"; $html_allinone = $html_allinone . buildTable( "allInOne" ) . "
" ; } $html_allinonelinux = ""; if ( $hasAllInOneLinux ) { $html_allinonelinux = "

Report Designer Full Eclipse Install for Linux

This Download includes the BIRT Reporting Framework, Eclipse SDK, GEF and EMF and Axis downloads. It includes everything you need to get started.

"; $html_allinonelinux = $html_allinonelinux . buildTable( "allInOneLinux" ) . "
" ; } $html_designer = ""; if ( $hasDesigner ) { $html_designer = "

Report Designer

The BIRT designer is a set Eclipse plugins that lets you build reports as a perspective from within Eclipse.

"; $html_designer = $html_designer . buildTable( "designer" ) . "
" ; } $html_rcp = ""; if ( $hasRcp ) { $html_rcp = "

RCP Report Designer

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.

"; $html_rcp = $html_rcp . buildTable( "rcp" ) . "
" ; } $html_dtpint = ""; if ( $hasbirtDTP ) { $html_dtpint = "

BIRT/DTP Integration

Includes minimal DTP Plugins that BIRT Requires if installing the Designer/Framework package. These are included in the all-in-one install by default.

"; $html_dtpint = $html_dtpint . buildTable( "birtDTP" ) . "
" ; } $html_sdk = ""; if ( $hasSDK ) { $html_sdk = "

BIRT SDK

Includes the source code for the BIRT plugins, docs, and BIRT Examples.

"; $html_sdk = $html_sdk . buildTable( "reportFrameworkSdk" ) . "
" ; } $html_engine = ""; if ( $hasEngine ) { $html_engine = "

Report Engine

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.

"; $html_engine = $html_engine . buildTable( "engine" ) . "
" ; } $html_osgiengine = ""; if ( $hasRuntimeosgi ) { $html_osgiengine = "

Report Engine OSGi deployment

If you wish to deploy the BIRT runtime as an OSGi runtime, use this download.

"; $html_osgiengine = $html_osgiengine . buildTable( "runtimeosgi" ) . "
" ; } $html_chart = ""; if ( $hasChart ) { if( substr_count($buildName,"2.2") > 0 ){ $html_chart = "

Chart Engine

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.

"; }else{ $html_chart = "

Chart Engine

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.

"; } } $html_chart = $html_chart . buildTable( "chart" ) . "
" ; $html_wtpSdk = ""; if ( $haswtpSdk ) { $html_wtpSdk = "

BIRT Web Tools Integration

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.

"; $html_wtpSdk = $html_wtpSdk . buildTable( "wtpSdk" ) . "
" ; } $html_birtSource = ""; if ( $hasbirtSource ) { $html_birtSource = "

BIRT Source Code

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 DTP project website.

"; $html_birtSource = $html_birtSource . buildTable( "birtSource" ) . "
" ; } $html_samples = ""; if ( $hasSamples ) { $html_samples = "

Samples

Sample integration code for reports and charts. Download this if you want examples of how to extend BIRT.

"; $html_samples = $html_samples . buildTable( "samples" ) . "
" ; } $html_test_suite = ""; if ( $hasTests ) { $html_test_suite = "

Test Suites

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.

"; $html_test_suite = $html_test_suite . buildTable( "tests" ) . "
" ; } $html_db = ""; if ( $hasDb ) { $html_db = "

Demo Database

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 not include any BIRT software. Note that the sample database is already included in both the Designer and the RCP Designer packages.

"; $html_db = $html_db . buildTable( "database" ) . "
" ; } $html_update = ""; if ( $hasupdate ) { $html_update = "

Zipped P2 repository

This downloads includes the zipped p2 repository of BIRT bundles. It can be consumed by P2 to install BIRT features.

"; $html_update = $html_update . buildTable( "birtP2Repo" ) . "
" ; } if (file_exists($build_directory)) { $html_logs = ""; $html_logs = $html_logs . "
Map File"; }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 = "

Build Status Report

"; $html_status = $html_status . "
Build Status Report"; } $html_psf = ""; if (file_exists($psf_file)) { $html_psf = "

Project Set File

"; $html_psf = $html_psf . "
Project Set File

This file can be used to check out the source and build BIRT. For more details see the BIRT Wiki

"; } # Paste your HTML content between the EOHTML markers! $html = <<

BIRT Downloads for build $buildName created on $buildDate

Build Documentation

$bl $bl_lic These downloads are provided under the Eclipse.org Software User Agreement. $ebl $bl_install Complete download instructions for BIRT and the software it requires. $ebl $bl_support BIRT provides a single download that works on all supported platforms. $ebl $bl_other Check for the latest builds and find general information about BIRT builds. $ebl $bl_lang Language Packs Available for BIRT. $ebl
$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

Build Logs


The following are the build logs created for this build. $html_logs
$html_status
$html_psf
EOHTML; } else { $html = "Error: This Build Does Not Exist"; } # Generate the web page $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); ?>