You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-dev@incubator.apache.org by Jerome Renard <je...@gmail.com> on 2011/04/25 06:36:38 UTC

[zeta-dev] Pake based build system

Good morning,

I pushed a few changes a couple of days ago and I think I am really close
to be done with the Pakefile (modulo command line argument support).

I would be happy to get your feedback about what has been done and the
result you get.

Here is how you can test :

1. install Pake:

pear channel-discover pear.symfony-project.com
pear channel-discover pear.indeyets.pp.ru
pear install indeyets/pake

You might also have to install pecl/svn (sudo pecl install svn)

2. svn up the website/ directory of the AZC's repository, you also
need trunk/ but I believe every body checked out the whole repository
:)

3. run "pake -T" and you should get the list of available tasks. The
name should be the same as in the Makefile

4. run "pake website" and after a while you should get a new version
of the website available in htdocs/

I attached an example VHost so you can easily test the website with Apache.

If you have a custom configuration, you can copy pake/config.yaml to
/wherever/you/want/config.mine.yaml and
then export the path in the ZETA_PAKE_FILE env variable [1]

Known issue:
- There is a duplicate entry in the navigation part, I need to fix
this but I did not found where the problem is yet.
(any help/patch welcome :))

Have a nice day :)

1. https://fisheye6.atlassian.com/browse/zetacomponents/website/Pakefile?hb=true#to549

-- 
Jérôme Renard
http://39web.fr | http://jrenard.info | http://twitter.com/jeromerenard

Re: [zeta-dev] Pake based build system

Posted by Jerome Renard <je...@gmail.com>.
James,

On Mon, Jun 6, 2011 at 6:09 PM, James Pic <ja...@gmail.com> wrote:
> On Mon, Jun 6, 2011 at 5:43 PM, Jerome Renard <je...@gmail.com> wrote:
>>
>> Just in case, what is your version of PHP ?
>>
>
> 5.3, the error was solved after enabling bz2.so php extension ...
>
> I'll try to fix the many warnings that happen on my setup ...
>
> Thanks for making the Pakefile btw, it looks great!
>

You are welcome, any feedback/help is much welcome :)

-- 
Jérôme Renard
http://39web.fr | http://jrenard.info | http://twitter.com/jeromerenard

Re: [zeta-dev] Pake based build system

Posted by James Pic <ja...@gmail.com>.
On Mon, Jun 6, 2011 at 5:43 PM, Jerome Renard <je...@gmail.com> wrote:
>
> Just in case, what is your version of PHP ?
>

5.3, the error was solved after enabling bz2.so php extension ...

I'll try to fix the many warnings that happen on my setup ...

Thanks for making the Pakefile btw, it looks great!

Regards

Re: [zeta-dev] Pake based build system

Posted by Jerome Renard <je...@gmail.com>.
Hi James,


On Mon, Jun 6, 2011 at 3:12 PM, James Pic <ja...@gmail.com> wrote:
> Hi Jerome,
>
> I run into a strange error, both as normal user and as root (which
> should not change anything according to the file permissions, but i
> tried anyway):
>
>>>> pake website
>>> svn update   classes
>>> exec         '/usr/bin/svn' update 'classes'
>>> svn update   scripts
>>> exec         '/usr/bin/svn' update 'scripts'
>>> svn update   templates
>>> exec         '/usr/bin/svn' update 'templates'
>>> file+        content/documentation/trunk/MvcTools/HelloMvc/www/.htaccess
> PHP Warning:  copy(../trunk/MvcTools/docs/HelloMvc/www/.htaccess):
> failed to open stream: No such file or directory in
> /home/jpic/lib/pear/pake/pakeFunction.php on line 133
[...]
>
>  [ezcBaseFilePermissionException]
>  The file 'compress.bzip2://content/documentation/trunk/phpdoc.tar.bz2'
> can not be opened for reading.
>

I did not get those errors, sorry.
The .htaccess is copied sucessfully and the tarball is extracted
without any error.

>
>
> <<< 15:09.51 Mon Jun 06 2011!~/src/zeta/website.svn
> <<< jpic@tina!484 E:1 S:4
>>>> ls -l content/documentation/trunk/phpdoc.tar.bz2
> -rwxr-xr-x 1 jpic jpic 1786863 Feb  9 18:53
> content/documentation/trunk/phpdoc.tar.bz2
>

Here is mine :
-rw-r--r--  1 jerome  staff   1.7M 15 May 07:00
content/documentation/trunk/phpdoc.tar.bz2

I am sorry but I do not get why you see those errors.

Just in case, what is your version of PHP ?

-- 
Jérôme Renard
http://39web.fr | http://jrenard.info | http://twitter.com/jeromerenard

Re: [zeta-dev] Pake based build system

Posted by James Pic <ja...@gmail.com>.
Hi Jerome,

I run into a strange error, both as normal user and as root (which
should not change anything according to the file permissions, but i
tried anyway):

>>> pake website
>> svn update   classes
>> exec         '/usr/bin/svn' update 'classes'
>> svn update   scripts
>> exec         '/usr/bin/svn' update 'scripts'
>> svn update   templates
>> exec         '/usr/bin/svn' update 'templates'
>> file+        content/documentation/trunk/MvcTools/HelloMvc/www/.htaccess
PHP Warning:  copy(../trunk/MvcTools/docs/HelloMvc/www/.htaccess):
failed to open stream: No such file or directory in
/home/jpic/lib/pear/pake/pakeFunction.php on line 133
   # Generating index files
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/ImageConversion/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/PersistentObjectDatabaseSchemaTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/SignalSlot/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/ImageAnalysis/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/File/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/PhpGenerator/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Feed/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/TranslationCacheTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Translation/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/WorkflowEventLogTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/ConsoleTools/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Cache/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/UserInput/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Search/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/PersistentObject/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/TreePersistentObjectTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Template/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/AuthenticationDatabaseTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Base/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Mail/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Tree/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Webdav/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/EventLogDatabaseTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Configuration/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/EventLog/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Execution/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/WorkflowDatabaseTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/DatabaseSchema/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Url/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Workflow/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Authentication/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Graph/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/TreeDatabaseTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/design/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Database/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Document/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/MvcTools/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/SystemInformation/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Archive/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/TemplateTranslationTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/Debug/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/GraphDatabaseTiein/.index.xml
>> file+        /home/jpic/src/zeta/website.svn/content/documentation/trunk/WorkflowSignalSlotTiein/.index.xml
   # Extracting tarball


  [ezcBaseFilePermissionException]
  The file 'compress.bzip2://content/documentation/trunk/phpdoc.tar.bz2'
can not be opened for reading.



<<< 15:09.51 Mon Jun 06 2011!~/src/zeta/website.svn
<<< jpic@tina!484 E:1 S:4
>>> ls -l content/documentation/trunk/phpdoc.tar.bz2
-rwxr-xr-x 1 jpic jpic 1786863 Feb  9 18:53
content/documentation/trunk/phpdoc.tar.bz2



Any idea or am I on my own ? :)

Thanks

James