Return-Path: Delivered-To: apmail-tuscany-dev-archive@www.apache.org Received: (qmail 85013 invoked from network); 14 Apr 2010 14:31:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 14:31:18 -0000 Received: (qmail 68671 invoked by uid 500); 14 Apr 2010 14:31:18 -0000 Delivered-To: apmail-tuscany-dev-archive@tuscany.apache.org Received: (qmail 68631 invoked by uid 500); 14 Apr 2010 14:31:18 -0000 Mailing-List: contact dev-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list dev@tuscany.apache.org Received: (qmail 68624 invoked by uid 99); 14 Apr 2010 14:31:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 14:31:18 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.17.10] (HELO moutng.kundenserver.de) (212.227.17.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 14:31:10 +0000 Received: from [192.168.0.15] (w-194.cust-4723.ip.static.uno.uk.net [95.172.230.194]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MfDvq-1NrX6j0eyo-00Ol29; Wed, 14 Apr 2010 16:30:48 +0200 Message-ID: <4BC5D193.1050807@apache.org> Date: Wed, 14 Apr 2010 15:30:43 +0100 From: Simon Nash User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: dev@tuscany.apache.org Subject: Re: [DISCUSS] Travel sample binary distribution References: <4BA53935.2060003@apache.org> <4BA56FBA.7010100@apache.org> <4BB08B5C.2060708@apache.org> <4BB11925.6040003@apache.org> <4BB1E51E.9000801@apache.org> <4BBCD84D.2040501@apache.org> In-Reply-To: <4BBCD84D.2040501@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/9z2wrxlITtv+rj1ObC6rMjcV1OWJEQEI/nnr 7IcxeBaCP6baRHPFA2y4qZDzQdHmZzPF05pPkI/dsJNf/H9qnY 4ENKY46x7X22JJJEbbsLw== Simon Nash wrote: > Simon Nash wrote: >> Simon Laws wrote: >>>> The "binaries" directory would contain a complete set of binaries >>>> and their runtime dependencies (configuration files etc.) so that users >>>> can easily see exactly what files are needed at runtime. >>>> >>>> I agree that running out of the source directories is easier in a >>>> development/test environment but this doesn't explain how people can >>>> package an application like this for redistribution in a production >>>> environment. This is not straightforward and I have spent many weeks >>>> figuring it out. It would seem a shame not to provide users with the >>>> benefit of this knowledge. >>>> >>>> Simon >>>> >>>> >>> >>> Ok, that's a good position. I guess we just need to tweak the README >>> to explain what's going on. >>> >>> Simon >>> >>> >> One more thought on this. Maybe we could leave the "binaries" directory >> in the source release but not build it automatically as part of the >> top-level build. In the README we could explain that this build module >> is available for those who want to see the runtime binary artifacts. >> This makes things simpler for those who just want to look at the >> sample source code and compile and run it. >> Unfortunately this doesn't work very well because the mvn -Pselfcontained profile needs to be set consistently when running the main mvn build and when building the "binaries" directory. So if someone runs the main mvn build with the default profile, and later builds the "binaries" directory using mvn -Pselfcontained, the output in "binaries" won't work. This is quite a likely scenario and it would cause confusion and frustration for users. I think the best solution is to include "binaries" in the main mvn build. This guarantees that the build output in "binaries" will always work when using either the default profile or mvn -Pselfcontained. The space and time overhead of doing this isn't very much (about 10% for space when using the default profile, and less than that for time). This doesn't affect the ant build because this doesn't produce a binary package or use the "binaries" directory. Simon >> Simon >> > I have created TUSCANY-3528 to track this. > > Simon > > >