Jump to: navigation, search

Difference between revisions of "ATF/ATFDownloadPage"

< ATF
Line 22: Line 22:
  
 
**The other files in this directory can be deleted when builds older that M4 are removed from the site.  
 
**The other files in this directory can be deleted when builds older that M4 are removed from the site.  
 +
 +
Lets look at more detail on index.php and files in directory downloadSite
  
 
'''Index.php'''  
 
'''Index.php'''  
Line 48: Line 50:
 
</pre>
 
</pre>
  
The main items to notice are  
+
The main items to notice in the above entry are  
  
downloadSite/index_build.php is the php file used to build the download page. It contains the base php variables used to build the download page. Things like the URL for the WTP prerequisites.  
+
*downloadSite/index_build.php is the php file used to build the download page. It contains the base php variables used to build the download page. Things like the URL for the WTP prerequisites.  
  
buildID is the build id for the build. This value should be the only thing you need to change. The PHP files should build the page from the build id.  
+
*buildID is the build id for the build. This value should be the only thing you need to change. The PHP files should build the page from the build id.  
  
Directory downloadSite
+
'''Directory downloadSite''''
  
Lets look at the other files in directory downloadSite.  
+
Lets look at the files in directory downloadSite.  
  
index_build.php - as stated before is the php file that builds the download page.  
+
*index_build.php - as stated before is the php file that builds the download page. It contains the base php variables used to build the download page. Things like the URL for the WTP prerequisites.
  
_installation_build.0.2.3.php - is loaded by the index_build.php and loads all the php files used to build the different section of the page.  
+
*_installation_build.0.2.3.php - is loaded by the index_build.php and loads all the php files used to build the different section of the page.  
  
Directory section_files contains the php files that build the different sections
+
*Directory section_files contains the php files that build the different sections
  
build_information_section.php
+
**build_information_section.php
download_section.php
+
**download_section.php
final_steps.php
+
**final_steps.php
important_section.php
+
**important_section.php
prerequisites_section.php
+
**prerequisites_section.php
  
 
You can change these files to change the information in each sections
 
You can change these files to change the information in each sections

Revision as of 23:02, 25 February 2008

This wiki entry describes how to upload add a build to the Web Site.

Uploading build

These instructions need to be filled in. I used to sftp the dev.eclipse.org and up loaded the file, but I'm unable to log into dev.eclipse.org. I will need to find out if the instructions have changed. I remember some note about turning off shell access which I didn't understand.

Updating the site.

  • Using CVS create a connection to dev.eclipse.org:/cvsroot/org.eclipse
  • Under www directory extract the ATF directory which contains the files for the Web Site.
  • The files for the download pages are in directory "downloads."

There are a lot of files in the download directory which can be removed as old builds are deleted. I will described the files that are used for milestone build M4 and later. Once the build older the M4 are deleted then the other files in the directory can be removed.

  • Index.php is the main file for download page and the php files that create the download page are in directory downloadSite, The newsworthy page we use for M4 is in directory new_newsworthy.0.2.3M3. We used the same information for milestone 4. Let me summarize below.
    • index.php - is the main pages that runs first to build the download site.
    • directory downloadSite - contains the php files that create the download page.
    • directory new_newsworthy.0.2.3M3 - contains the files for the newsworthy page used for M4 and M3.
    • The other files in this directory can be deleted when builds older that M4 are removed from the site.

Lets look at more detail on index.php and files in directory downloadSite

Index.php

The main page is broken into three main sections.

  • Latest Downloads
  • Milestone Builds
  • Weekly Builds

To add a build to one of the section, add an entry like the following (it varies slightly for each section, so start with on in that section.

  <tr>
    <td width="40%">
	<p>0.2.3M4 Milestone Build with New Packaging Options<a href="../new_newsworthy.0.2.3M3/atf-news.html"> [What's New]</a></p> 
    </td>
    <td width="30%">
	<a href="downloadSite/index_build.php?buildID=0.2.3M4-v200709141050">atf-incubation-0.2.3M4-v200709141050</a>
    </td>
    <td width="30%">
	<p>Friday Sept. 14 2007 </p>
    </td>
</tr>

The main items to notice in the above entry are

  • downloadSite/index_build.php is the php file used to build the download page. It contains the base php variables used to build the download page. Things like the URL for the WTP prerequisites.
  • buildID is the build id for the build. This value should be the only thing you need to change. The PHP files should build the page from the build id.

Directory downloadSite'

Lets look at the files in directory downloadSite.

  • index_build.php - as stated before is the php file that builds the download page. It contains the base php variables used to build the download page. Things like the URL for the WTP prerequisites.
  • _installation_build.0.2.3.php - is loaded by the index_build.php and loads all the php files used to build the different section of the page.
  • Directory section_files contains the php files that build the different sections
    • build_information_section.php
    • download_section.php
    • final_steps.php
    • important_section.php
    • prerequisites_section.php

You can change these files to change the information in each sections