Gaetano, On Thu, Apr 14, 2011 at 9:40 AM, Gaetano Giunta <giunta.gaet...@gmail.com> wrote: > Jerome Renard wrote: [...] >> >> As you will see it is quite simple et much more readable that its Ant >> equivalent. > > Glad we share the same impressions ;-) >> >> Any feedback welcome :) >> > One thing: I see you have set the path to cli tools in config file. > While this allows some flexibility, it means the config file will need to be > different if running the build on my windows pc and on your mac. > I propose instead to make the config file oblivious to the environment, and > use options passed on the cli for environment-related parameters, eg > > php pake.php thistask --php=/usr/local/bin/php --doxygen="c:/program > files/doxygen/bin/doxygen.exe" >
I believe you can define environment variables on Windows: - https://fisheye6.atlassian.com/browse/zetacomponents/website/Pakefile?hb=true#to150 > Also remember to use escapeshellarg() around your command line executables > and paths before invoking them. There might be spaces in them... > I know. As I said earlier on this thread I will take care of that (and other tiny details) later. -- Jérôme Renard http://39web.fr | http://jrenard.info | http://twitter.com/jeromerenard