Changeset 313

Show
Ignore:
Timestamp:
11/24/06 01:05:02 (2 years ago)
Author:
laurentj
Message:

jbuildtools : correction sur des problèmes de paramètres d'appel

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/lib/jManifest.class.php

    r297 r313  
    6060                            $contents = $preproc->parseFile($sourcefile); 
    6161                        }catch(Exception $e){ 
    62                             throw new Exception ( "$ficlist : line $nbline, cannot process file ".$m[2]." (", $e ,")\n"); 
     62                            throw new Exception ( "$ficlist : line $nbline, cannot process file ".$m[2]." (". $e->getMessage() .")\n"); 
    6363                        } 
    6464                        if($m[1]=='*' && $stripcomment && preg_match("/\.php$/",$destfile)){ 
  • trunk/build/mkdist.php

    r292 r313  
    2020array_shift($_SERVER['argv']); // shift the script name 
    2121 
    22 $options = array('verbose'=>false); 
     22$options = array('verbose'=>false, 'stripcomment'=>false); 
    2323 
    2424if(substr($_SERVER['argv'][0],0,1) == '-'){ 
    2525  $sw = substr(array_shift($_SERVER['argv']),1); 
    2626  $options['verbose'] = (strpos('v', $sw) !== false); 
    27  
     27  $options['stripcomment'] = (strpos('c', $sw) !== false); 
    2828} 
    2929 
    3030try { 
    3131    list($ficlist, $sourcedir, $distdir) = $_SERVER['argv']; 
    32     jManifest::process($ficlist, $sourcedir, $distdir, $_SERVER, $options['verbose']); 
     32    jManifest::process($ficlist, $sourcedir, $distdir, $_SERVER, $options['stripcomment'], $options['verbose']); 
    3333    exit(0); 
    3434}catch(Exception $e){ 
Download in other formats: Unified Diff Zip Archive