That makes sense, Kit. Please let me know if there are firewall
issues between Babel and Git... I know people who know people :)
Denis
On 11/14/2012 11:23 AM, Kit Lo wrote:
Denis,
The extraction process is a PHP
script. However, I heard that there is a memory problem with
file_get_contents() when reading large files.
file_get_contents() reads everything into memory, and the
snapshot zips potentially could be big, and may result in
"Allowed Memory Size Exhausted" fatal error.
Therefore, I plan to shell out
and use the wget command in the PHP script to fetch the
snapshot zips, if there is no firewall restrictions from the
Babel server.
Thanks,
Kit Lo
Eclipse Babel Project Lead
IBM Eclipse SDK (IES) Globalization Technical Lead
IBM Rational solution for Collaborative Lifecycle Management
(CLM) Globalization Technical Lead
Denis Roy ---11/14/2012 09:18:58
AM---Hi Kit, IMO, using wget to fetch a snapshot zip is even
better than a Git clone,
From: Denis Roy
<denis.roy@xxxxxxxxxxx>
To: babel-dev@xxxxxxxxxxx,
Date: 11/14/2012 09:18 AM
Subject: Re: [babel-dev] Extracting project
source files from Git repositories
Sent by: babel-dev-bounces@xxxxxxxxxxx
Hi Kit,
IMO, using wget to fetch a snapshot zip is even better than a
Git clone, there you're essentially fetching (and storing) the
entire project's history, which is definitely not needed for
Babel's purposes.
Either use wget if it's a shell script, or use php's
file_get_contents() if it's a PHP script.
Denis
On 11/13/2012 06:06 PM, Kit Lo wrote:
|