On Wed, Oct 12, 2011 at 1:52 PM, Sprog : Weyert de Boer <[email protected]>wrote:
> > If you need to generate several zips, each needs a different id. By
> > default, the id is the project's name. You can change the id by doing,
> > e.g.,
> >
> > package(:zip, :id => 'subprojects').tap do |zip|
> > zip.include project('foo')
> > zip.include project('bar')
> > ...
> > end
>
> Aha, okay, but where I should put this definition?
>
Under your main project. (see below)
> I now have something like this (simplified):
>
> corp_layout = Layout.new
> corp_layout... blahblah
>
> define 'project', :layout => corp_layout do
> define 'main', :layout => corp_layout, :base_dir => '' do
> project.group = 'mainapp'
>
Right here. Below project.group
end
>
> define 'subproject1', :layout => corp_layout, :base_dir =>
> '../../subproject1/workspace' do
> project.group = 'banners'
> end
>
> define 'subproject2', :layout => corp_layout, :base_dir =>
> '../../subproject2/workspace' do
> project.group = 'banners'
> end
> end
>