Changeset 205 for branches/1.1

Show
Ignore:
Timestamp:
09/17/05 16:01:31 (3 years ago)
Author:
david
Message:

Getting ready for 1.1.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/docs/user_guide/book/chapters/Installation.html

    r3 r205  
    2020    on Windows)</li> 
    2121  <li>A supported RDBMS (MySQL, MS SQL Server, PostgreSQL, SQLite, Oracle)</li> 
    22   <li><a href="Bibliography.html#bib.phing">Phing 2.0</a></li> 
    23   <li><a href="Bibliography.html#bib.creole">Creole</a> &gt;= 1.0.0</li> 
     22  <li><a href="Bibliography.html#bib.phing">Phing 2.1</a></li> 
     23  <li><a href="Bibliography.html#bib.creole">Creole</a> &gt;= 1.0.1</li> 
    2424  <li>PEAR Log package (optional)</li> 
    2525</ul> 
  • branches/1.1/generator/CHANGELOG

    r3 r205  
    22  P R O P E L    C H A N G E S 
    33  ============================ 
     4 
     5 September 17, 2005 - 1.1.1 
     6 
     7  Due to popular demand, the 1.1.1 release introduces compatibility with Phing 2.1.0-final. It does not contain any new features. 
    48 
    59 April 7, 2005 - 1.1.0 
  • branches/1.1/generator/INSTALL

    r3 r205  
    1919          support in order to take advantage of all build options. 
    2020 
    21         * PHING >= 2.0.0 
     21        * PHING >= 2.1.0 
    2222          Propel uses the PHING build system to build the classes and SQL definition 
    2323          files for your data model.  PHING is an open-source project build system 
     
    2525          See http://phing.tigris.org/ to learn how to install Phing (it's easy). 
    2626           
    27     * Creole >- 1.0.0    
     27    * Creole >- 1.0.1    
    2828          Creole is a Uniform DB API framework for PHP5. Creole is available as a PEAR  
    2929          package or can be installed in a more traditional manner. See  
     
    148148  ----- 
    149149   
    150   This assumes that you have already installed and configured a copy of PHING 2. 
     150  This assumes that you have already installed and configured a copy of PHING 2.1. 
    151151 
    152152    % cd /var/www/php/propel/generator   
  • branches/1.1/generator/classes/propel/engine/database/transform/XmlToAppData.php

    r3 r205  
    106106            $fr = new FileReader($xmlFile); 
    107107        } catch (Exception $e) { 
    108             $f = new File($xmlFile); 
     108            $f = new PhingFile($xmlFile); 
    109109            throw new Exception("XML File not found: " . $f->getAbsolutePath()); 
    110110        } 
     
    178178 
    179179                        if ($xmlFile{0} != '/') { 
    180                             $f = new File($this->currentXmlFile); 
    181                             $xf = new File($f->getParent(), $xmlFile); 
     180                            $f = new PhingFile($this->currentXmlFile); 
     181                            $xf = new PhingFile($f->getParent(), $xmlFile); 
    182182                            $xmlFile = $xf->getPath(); 
    183183                        } 
  • branches/1.1/generator/classes/propel/engine/database/transform/XmlToData.php

    r3 r205  
    7272                $fr = new FileReader($xmlFile); 
    7373            } catch (Exception $e) { 
    74                 $f = new File($xmlFile); 
     74                $f = new PhingFile($xmlFile); 
    7575                throw new BuildException("XML File not found: " . $f->getAbsolutePath()); 
    7676            } 
  • branches/1.1/generator/classes/propel/phing/AbstractPropelDataModelTask.php

    r3 r205  
    9595    /** 
    9696     * Destination directory for results of template scripts. 
    97      * @var File 
     97     * @var PhingFile 
    9898     */ 
    9999    protected $outputDirectory; 
     
    101101    /** 
    102102     * Path where Capsule looks for templates. 
    103      * @var File 
     103     * @var PhingFile 
    104104     */ 
    105105    protected $templatePath; 
     
    220220     * [REQUIRED] Set the output directory. It will be 
    221221     * created if it doesn't exist. 
    222      * @param File $outputDirectory 
     222     * @param PhingFile $outputDirectory 
    223223     * @return void 
    224224     * @throws Exception 
    225225     */ 
    226     public function setOutputDirectory(File $outputDirectory) { 
     226    public function setOutputDirectory(PhingFile $outputDirectory) { 
    227227        try { 
    228228            if (!$outputDirectory->exists()) { 
     
    271271 
    272272    /** 
    273      * Maps the passed in name to a new filename & returns resolved File object. 
     273     * Maps the passed in name to a new filename & returns resolved PhingFile object. 
    274274     * @param string $from 
    275      * @return File Resolved File object. 
     275     * @return PhingFile Resolved PhingFile object. 
    276276     * @throws BuilException    - if no Mapper element se 
    277277     *                          - if unable to map new filename. 
     
    290290        // Mappers always return arrays since it's possible for some mappers to map to multiple names. 
    291291        $outFilename = array_shift($mapped); 
    292         $outFile = new File($this->getOutputDirectory(), $outFilename); 
     292        $outFile = new PhingFile($this->getOutputDirectory(), $outFilename); 
    293293        return $outFile; 
    294294    } 
     
    311311            foreach($dataModelFiles as $dmFilename) { 
    312312                $this->log("Processing: ".$dmFilename); 
    313                 $f = new File($srcDir, $dmFilename); 
     313                $f = new PhingFile($srcDir, $dmFilename); 
    314314                $xmlParser = new XmlToAppData($this->getTargetDatabase(), 
    315315                                              $this->getTargetPackage(), 
     
    347347        // Make sure the output directory exists, if it doesn't 
    348348        // then create it. 
    349         $outputDir = new File($this->outputDirectory); 
     349        $outputDir = new PhingFile($this->outputDirectory); 
    350350        if (!$outputDir->exists()) { 
    351351            $this->log("Output directory does not exist, creating: " . $outputDir->getAbsolutePath()); 
  • branches/1.1/generator/classes/propel/phing/PropelCreoleTransformTask.php

    r3 r205  
    148148            $this->generateXML(); 
    149149            $this->log("Writing XML to file: " . $this->xmlSchema); 
    150             $outFile = new File($this->xmlSchema); 
     150            $outFile = new PhingFile($this->xmlSchema); 
    151151            $out = new FileWriter($outFile); 
    152152            $xmlstr = $this->doc->saveXML(); 
  • branches/1.1/generator/classes/propel/phing/PropelDataDumpTask.php

    r3 r205  
    7676    /** 
    7777     * Properties file that maps a data XML file to a particular database. 
    78      * @var File 
     78     * @var PhingFile 
    7979     */ 
    8080    private $datadbmap; 
     
    9494     * Set the file that maps between data XML files and databases. 
    9595     * 
    96      * @param File $sqldbmap the db map 
     96     * @param PhingFile $sqldbmap the db map 
    9797     * @return void 
    9898     */ 
    99     public function setDataDbMap(File $datadbmap) 
     99    public function setDataDbMap(PhingFile $datadbmap) 
    100100    { 
    101101        $this->datadbmap = $datadbmap; 
     
    105105     * Get the file that maps between data XML files and databases. 
    106106     * 
    107      * @return File $datadbmap. 
     107     * @return PhingFile $datadbmap. 
    108108     */ 
    109109    public function getDataDbMap() 
  • branches/1.1/generator/classes/propel/phing/PropelDataModelTask.php

    r3 r205  
    5858     * [REQUIRED] Set the output file for the 
    5959     * generation process. 
    60      * @param string $outputFile (TODO: change this to File) 
     60     * @param string $outputFile (TODO: change this to PhingFile) 
    6161     * @return void 
    6262     */ 
  • branches/1.1/generator/classes/propel/phing/PropelDataSQLTask.php

    r3 r205  
    4040    /** 
    4141     * Properties file that maps an SQL file to a particular database. 
    42      * @var File 
     42     * @var PhingFile 
    4343     */ 
    4444    private $sqldbmap; 
     
    4646    /** 
    4747     * Properties file that maps a data XML file to a particular database. 
    48      * @var File 
     48     * @var PhingFile 
    4949     */ 
    5050    private $datadbmap; 
     
    5252    /** 
    5353     * The base directory in which to find data XML files. 
    54      * @var File 
     54     * @var PhingFile 
    5555     */ 
    5656    private $srcDir; 
     
    5959     * Set the file that maps between SQL files and databases. 
    6060     * 
    61      * @param File $sqldbmap the sql -> db map. 
     61     * @param PhingFile $sqldbmap the sql -> db map. 
    6262     * @return void 
    6363     */ 
    64     public function setSqlDbMap(File $sqldbmap) 
     64    public function setSqlDbMap(PhingFile $sqldbmap) 
    6565    { 
    6666        $this->sqldbmap = $sqldbmap; 
     
    7070     * Get the file that maps between SQL files and databases. 
    7171     * 
    72      * @return File sqldbmap. 
     72     * @return PhingFile sqldbmap. 
    7373     */ 
    7474    public function getSqlDbMap() 
     
    8080     * Set the file that maps between data XML files and databases. 
    8181     * 
    82      * @param File $sqldbmap the db map 
     82     * @param PhingFile $sqldbmap the db map 
    8383     * @return void 
    8484     */ 
    85     public function setDataDbMap(File $datadbmap) 
     85    public function setDataDbMap(PhingFile $datadbmap) 
    8686    { 
    8787        $this->datadbmap = $datadbmap; 
     
    9191     * Get the file that maps between data XML files and databases. 
    9292     * 
    93      * @return File $datadbmap. 
     93     * @return PhingFile $datadbmap. 
    9494     */ 
    9595    public function getDataDbMap() 
     
    100100    /** 
    101101     * Set the src directory for the data xml files listed in the datadbmap file. 
    102      * @param File $srcDir data xml source directory 
    103      */ 
    104     public function setSrcDir(File $srcDir) 
     102     * @param PhingFile $srcDir data xml source directory 
     103     */ 
     104    public function setSrcDir(PhingFile $srcDir) 
    105105    { 
    106106        $this->srcDir = $srcDir; 
     
    110110     * Get the src directory for the data xml files listed in the datadbmap file. 
    111111     * 
    112      * @return File data xml source directory 
     112     * @return PhingFile data xml source directory 
    113113     */ 
    114114    public function getSrcDir() 
     
    158158        foreach($map->keys() as $dataXMLFilename) { 
    159159 
    160             $dataXMLFile = new File($this->srcDir, $dataXMLFilename); 
     160            $dataXMLFile = new PhingFile($this->srcDir, $dataXMLFilename); 
    161161 
    162162            // if file exists then proceed 
  • branches/1.1/generator/classes/propel/phing/PropelGraphvizTask.php

    r3 r205  
    3535    /** 
    3636     * The properties file that maps an SQL file to a particular database. 
    37      * @var File 
     37     * @var PhingFile 
    3838     */ 
    3939    private $sqldbmap; 
     
    5252    /** 
    5353     * Set the sqldbmap. 
    54      * @param File $sqldbmap The db map. 
     54     * @param PhingFile $sqldbmap The db map. 
    5555     */ 
    56     public function setOutputDirectory(File $out) 
     56    public function setOutputDirectory(PhingFile $out) 
    5757    { 
    5858        $this->outDir = $out; 
     
    6262    /** 
    6363     * Set the sqldbmap. 
    64      * @param File $sqldbmap The db map. 
     64     * @param PhingFile $sqldbmap The db map. 
    6565     */ 
    66     public function setSqlDbMap(File $sqldbmap) 
     66    public function setSqlDbMap(PhingFile $sqldbmap) 
    6767    { 
    6868        $this->sqldbmap = $sqldbmap; 
     
    7171    /** 
    7272     * Get the sqldbmap. 
    73      * @return File $sqldbmap. 
     73     * @return PhingFile $sqldbmap. 
    7474     */ 
    7575    public function getSqlDbMap() 
  • branches/1.1/generator/classes/propel/phing/PropelOMTask.php

    r3 r205  
    101101                        foreach(array($pkpeer, $pkmap, $pkbase) as $pk) { 
    102102                            $path = strtr($pk, '.', '/'); 
    103                             $f = new File($this->getOutputDirectory(), $path); 
     103                            $f = new PhingFile($this->getOutputDirectory(), $path); 
    104104                            if (!$f->exists()) { 
    105105                                if (!$f->mkdirs()) { 
     
    145145                        // Create [empty] stub Peer class if it does not already exist 
    146146                        $path = ClassTools::getFilePath($package, $table->getPhpName() . "Peer"); 
    147                         $_f = new File($basepath, $path); 
     147                        $_f = new PhingFile($basepath, $path); 
    148148                        if (!$_f->exists()) { 
    149149                            $this->log("\t\t-> " . $table->getPhpName() . "Peer"); 
     
    155155                        // Create [empty] stub object class if it does not already exist 
    156156                        $path = ClassTools::getFilePath($package, $table->getPhpName()); 
    157                         $_f = new File($basepath, $path); 
     157                        $_f = new PhingFile($basepath, $path); 
    158158                        if (!$_f->exists()) { 
    159159                            $this->log("\t\t-> " . $table->getPhpName()); 
     
    166166                            // Create [empty] stub Node Peer class if it does not already exist 
    167167                            $path = ClassTools::getFilePath($package, $table->getPhpName() . "NodePeer"); 
    168                             $_f = new File($basepath, $path); 
     168                            $_f = new PhingFile($basepath, $path); 
    169169                            if (!$_f->exists()) { 
    170170                                $this->log("\t\t-> " . $table->getPhpName() . "NodePeer"); 
     
    176176                            // Create [empty] stub Node class if it does not already exist 
    177177                            $path = ClassTools::getFilePath($package, $table->getPhpName() . "Node"); 
    178                             $_f = new File($basepath, $path); 
     178                            $_f = new PhingFile($basepath, $path); 
    179179                            if (!$_f->exists()) { 
    180180                                $this->log("\t\t-> " . $table->getPhpName() . "Node"); 
     
    188188                        if ($table->getInterface()) { 
    189189                            $path = ClassTools::getFilePath($package, $table->getInterface()); 
    190                             $_f = new File($basepath, $path); 
     190                            $_f = new PhingFile($basepath, $path); 
    191191                            if (!$_f->exists()) { 
    192192                                $this->log("\t\t-> " . $table->getInterface()); 
     
    205205                                    $generator->put("child", $child); 
    206206                                    $path = ClassTools::getFilePath($package, $child->getClassName()); 
    207                                     $_f = new File($basepath, $path); 
     207                                    $_f = new PhingFile($basepath, $path); 
    208208                                    if (!$_f->exists()) { 
    209209                                        $this->log("\t\t-> " . $child->getClassName()); 
  • branches/1.1/generator/classes/propel/phing/PropelSQLExec.php

    r3 r205  
    137137     * Set the src directory for the sql files listed in the sqldbmap file. 
    138138     *  
    139      * @param File $srcDir sql source directory 
    140      */ 
    141     public function setSrcDir(File $srcDir) 
     139     * @param PhingFile $srcDir sql source directory 
     140     */ 
     141    public function setSrcDir(PhingFile $srcDir) 
    142142    { 
    143143        $this->srcDir = $srcDir; 
     
    147147     * Get the src directory for the sql files listed in the sqldbmap file. 
    148148     * 
    149      * @return File SQL Source directory 
     149     * @return PhingFile SQL Source directory 
    150150     */ 
    151151    public function getSrcDir() 
     
    265265     * Set the output file. 
    266266     * 
    267      * @param File $output 
    268      */ 
    269     public function setOutput(File $output) 
     267     * @param PhingFile $output 
     268     */ 
     269    public function setOutput(PhingFile $output) 
    270270    { 
    271271        $this->output = $output; 
     
    335335            foreach($files as $fileName) { 
    336336 
    337                 $file = new File($this->srcDir, $fileName); 
     337                $file = new PhingFile($this->srcDir, $fileName); 
    338338 
    339339                if ($file->exists()) { 
     
    653653    } 
    654654     
    655     public function setSrc(File $src) 
     655    public function setSrc(PhingFile $src) 
    656656    { 
    657657        $this->tSrcFile = $src; 
  • branches/1.1/generator/classes/propel/phing/PropelSQLTask.php

    r3 r205  
    3737    /** 
    3838     * The properties file that maps an SQL file to a particular database. 
    39      * @var File 
     39     * @var PhingFile 
    4040     */ 
    4141    private $sqldbmap; 
     
    4848    /** 
    4949     * Set the sqldbmap. 
    50      * @param File $sqldbmap The db map. 
    51      */ 
    52     public function setSqlDbMap(File $sqldbmap) 
     50     * @param PhingFile $sqldbmap The db map. 
     51     */ 
     52    public function setSqlDbMap(PhingFile $sqldbmap) 
    5353    { 
    5454        $this->sqldbmap = $sqldbmap; 
     
    5757    /** 
    5858     * Get the sqldbmap. 
    59      * @return File $sqldbmap. 
     59     * @return PhingFile $sqldbmap. 
    6060     */ 
    6161    public function getSqlDbMap() 
     
    149149            //$generator->put("fnamekeys", $fnamekeys); // make available to sub-templates       
    150150 
    151         $ddlStartFile = new File($this->getTemplatePath(), "sql/base/$targetDatabase/database-start.tpl"); 
    152         $ddlEndFile = new File($this->getTemplatePath(), "sql/base/$targetDatabase/database-end.tpl"); 
     151        $ddlStartFile = new PhingFile($this->getTemplatePath(), "sql/base/$targetDatabase/database-start.tpl"); 
     152        $ddlEndFile = new PhingFile($this->getTemplatePath(), "sql/base/$targetDatabase/database-end.tpl"); 
    153153         
    154154            foreach ($this->getDataModels() as $dataModel) { 
  • branches/1.1/generator/pear/build-pear-package.xml

    r3 r205  
    117117                        <option name="baseinstalldir" value="propel"/> 
    118118                         
    119                         <option name="notes">The 1.1.0 release adds some new features and fixes several bugs. See CHANGELOG for important changes.</option> 
     119                        <option name="notes">Due to popular demand, the 1.1.1 release introduces compatibility with Phing 2.1.0-final. It does not contain any new features.</option> 
    120120                         
    121121                        <!-- Set the simple options --> 
     
    146146                                        <element key="name" value="phing"/> 
    147147                                        <element key="type" value="pkg"/> 
    148                                         <element key="version" value="2.0.0"/> 
     148                                        <element key="version" value="2.1.0"/> 
    149149                                        <element key="rel" value="ge"/> 
    150150                                </element> 
     
    172172                        <mapping name="platformexceptions"> 
    173173                                <element key="pear/pear-propel-gen.bat" value="windows"/> 
    174                                 <element key="pear/pear-propel-gen" value="(*ix|*ux|darwin*|SunOS*)"/> 
     174                                <element key="pear/pear-propel-gen" value="(*ix|*ux|darwin*|*BSD|SunOS*)"/> 
    175175                        </mapping> 
    176176                         
  • branches/1.1/generator/templates/conf/Control.tpl

    r3 r205  
    1414 
    1515 
    16 $pfile = new File($propertiesFile); 
     16$pfile = new PhingFile($propertiesFile); 
    1717if (!$pfile->exists()) {         
    1818    throw new BuildException("Property file does not exist: $propertiesFile"); 
  • branches/1.1/runtime/build-pear-package.xml

    r3 r205  
    9191                        <option name="baseinstalldir" value="propel"/> 
    9292                         
    93                         <option name="notes">The 1.1.0 release adds some new features and fixes several bugs.</option> 
     93                        <option name="notes">Due to popular demand, the 1.1.1 release introduces compatibility with Phing 2.1.0-final. It does not contain any new features.</option> 
    9494                         
    9595                        <!-- Set the simple options -->