Time-stamped packages, the bakery & the wiki

Published on and tagged with ant  bakery  cakephp

Ok, as the title indicates this post is a bit of a mishmash…

Let me start with the time-stamped packages. You may have noticed on the downloads page that all files are named like file_2006-12-29.zip. To create those packages I wrote a simple Ant script, primarily because I couldn’t figure out how to include empty folders in the export from Eclipse ;-) Maybe it is useful for you:

<?xml version="1.0"?>
<project name="testsuite" default="default">
    <target name="default">
        <tstamp>
            <format property="TODAY" pattern="yyyy-MM-dd" />
        </tstamp>
        <property name="FILE_NAME" value="/home/dho/cakephp_testsuite_${TODAY}.zip"></property>
        <delete file="${FILE_NAME}"></delete>
        <zip destfile="${FILE_NAME}" 
               basedir="/home/dho/projects/cakeprojects/cakephp-testsuite" 
               includes="app/**, vendors/**"
               excludesfile="build.xml">
        </zip>
    </target>
</project>

The probably most missed feature in the bakery was added yesterday: the search functionality. Yesterday was also the final day for the wiki, its url redirects now to the bakery.

As this the last post in this year: A happy New Year to you! And see you again in 2007!

7 comments baked

  • Dieter@be

    hmm there was still some quality content on the wiki that wasn’t ported to the bakery yet… :/

  • JMG

    Hum, I still trust my good old shell for these things. The following script does just the same thing as your Ant’s:

    #!/bin/sh
    today=`date +”%Y-%m-%d”`
    basedir=/home/dho/projects/cakeprojects/cakephp-testsuite
    zip_file=”/home/dho/cakephp_testsuite/cakephp_testsuite_{$today}.zip”

    rm -f $zip_file
    zip -r $zip_file $basedir/app/* $basedir/vendors/* -x build.sh

    Could be enhanced to be generic. Just call this script with : ‘build.sh cakephp-testsuite’ and it will create ‘/home/dho/cakephp-testsuite/cakephp-testsuite-YYYY-MM-DD.zip’

    #!/bin/sh
    project=$1
    today=`date +”%Y-%m-%d”`
    basedir=/home/dho/projects/cakeprojects/$project
    zip_file=”/home/dho/$project/{$project}-$today.zip”

    rm -f $zip_file
    zip -r $zip_file $basedir/app/* $basedir/vendors/*

  • cakebaker

    @Dieter@be: Gwoo mentioned in IRC (http://irc.cakephp.org/cakephp/viewlog/2006-12-29#0830) that he will make the wiki pages available as download, but I don’t know where.

    @JMG: Thanks for the shell script!

  • RoadHouse

    i’m using ant to my builds too

    and your tip is very util, another usefull ant feature is a : to replace strings inside a file, i’m using this to build a production build (with DEBUG=0 and other db configs) and dev build (with DEBUG=2 and another db configs)

  • laplix

    I’ll have to go with Dieter here. The Bakery is moving slowly, articles and etc. having to be approved and all that sort of things…

    Also, the wiki was a community place. We had a feel of the people. Why loose that?

    The Bakery is perfect for articles and stuff, but the community lived in the wiki. Why not let it loose? People can put their ideas and code there and later on transfert it to the Bakery.

    Anyway, t’was my 2ยข..

    Still a very happy new year for all you.
    Louis

  • cakebaker

    @RoadHouse: Wow, an interesting approach!

    @laplix: I agree, the process is slow and a bit intransparent. I think the best solution would be something between a wiki and the bakery.

  • Mariano Iglesias

    A wikery perhaps? ;)

    I agree, wiki should be there. Nothing like letting the community write their own documentation while it has not been officialy published yet.

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License