root / tags / release-0.4.2 / buildscripts / webbuild.php

Revision 7450, 0.9 kB (checked in by jburke, 21 months ago)

References #2366. Have something primitive working for the build cache. Still need to do more testing, and something is weird with compression -- failure in makeDojoJsWeb.js when trying to make it.

Line 
1<?
2    $buildScriptsDir = "/Users/jrbsilver/svn/dojo/branches/0.4/buildscripts";
3    $buildCacheDir = "/Users/jrbsilver/svn/dojo/branches/0.4/buildscripts/webbuild/webbuildtemp/0.4.2rc1/web/buildscripts";
4    $depList = isset($_POST['depList']) ? $_POST['depList'] : null;
5    $provideList = isset($_POST['provideList']) ? $_POST['provideList'] : 'null';
6    $version = isset($_POST['version']) ? $_POST['version'] : '0.0.0dev';
7    $xdDojoUrl = isset($_POST['xdDojoUrl']) ? $_POST['xdDojoUrl'] : '';
8
9    if(!isset($depList)){
10?>
11        <html>
12            Please specify a comma-separated list of files.
13        </html>
14<?
15    }else{
16        header("Content-Type: application/x-javascript");
17        header("Content-disposition: attachment; filename=dojo.js");
18       
19        $dojoContents = `/usr/bin/java -jar $buildScriptsDir/lib/custom_rhino.jar $buildScriptsDir/makeDojoJsWeb.js $buildCacheDir/dojobuilds $depList $provideList $version $xdDojoUrl`;
20
21        print($dojoContents);
22    }
23?>
Note: See TracBrowser for help on using the browser.