Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
displayPrereqs.php 15.77 KiB
<!-- ***********  Required Prerequisites **************  -->
<table border=0 cellspacing=2 cellpadding=2 width="100%">
	<tr>
		<td align="left" valign="top" bgcolor="#0080C0"><font
			face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Prerequisites
				and Handy Extras</font></td>
	</tr>
	<tr>
		<td>
			<p>These are the prerequisites to build or run these packages. All
				are not necessarily required, but instead some subset. Also listed
				are some frequently needed links for committer-required packages
				when creating new development environments, or targets to run
				against.</p>
			<p>
				Note that Java 6 is recommended for using WTP at a whole, even though subsets of WTP
				and other <a href="http://www.eclipse.org/downloads/">Eclipse
					Projects</a> might run with <a
					href="http://www.eclipse.org/downloads/moreinfo/jre.php">other JRE
					levels</a>. See <a href="http://www.eclipse.org/projects/project-plan.php?projectid=webtools#target_environments">planned target environments</a> for more information.
			</p>
			<p></p>
		</td>
	</tr>
	<tr>
		<td>
			<table border=0 cellspacing=1 cellpadding=1 width="90%"
				align="center">

				<tr valign="middle">
					<td colspan="2"><hr /></td>
				</tr>
				
				
				
				

                    <?php
                    include_once('dependency.properties.php');                                        
                    include_once('prereqsToDisplay.php');
                    $eclipse_mirror_script="http://www.eclipse.org/downloads/download.php?file=";
                    
                    if ("true" === $prereq_eclipseplatform) {
                        
                        echo "<td width=\"50%\">";
                        echo $eclipseplatform_name . "&nbsp;" . $eclipseplatform_description ;
                        echo "</td>";

                        //customize page depending on user's browser/platform, if we can detect it
                        $usersPlatform = getPlatform();
                        // assume windows by default, since likely most frequent, even for cases where
                        // platform is "unknown". I've noticed Opera reports 'unknown' :(
                        $recommendedFile=$eclipse_file_win32_win32_x86_64;
                        if (strcmp($usersPlatform,"linux")== 0) {
                            $recommendedFile=$eclipse_file_linux_gtk_x86_64;
                        } else if (strcmp($usersPlatform,"mac") == 0) {
                            $recommendedFile=$eclipse_file_macosx_cocoa_x86_64;
                        }

                        echo "<td align=\"right\">";

                        echo getPrereqReferenceOrName($eclipse_mirror_script, $eclipseplatform_mirror_prefixuri, $eclipseplatform_url, $recommendedFile, $eclipse_fspath_prefix);
                        echo " or <a href=\"" . $eclipseplatform_url . "\">appropriate platform</a>";
                        echo " or <a href=\"" . $eclipseplatform_build_home . "\">equivalent</a></td>";


                        echo " </tr>";
                    }
                    ?>