Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94513FF37 for ; Wed, 20 Mar 2013 02:23:49 +0000 (UTC) Received: (qmail 46661 invoked by uid 500); 20 Mar 2013 02:23:49 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 46622 invoked by uid 500); 20 Mar 2013 02:23:49 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 46614 invoked by uid 99); 20 Mar 2013 02:23:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 02:23:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of josh.elser@gmail.com designates 209.85.128.172 as permitted sender) Received: from [209.85.128.172] (HELO mail-ve0-f172.google.com) (209.85.128.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 02:23:42 +0000 Received: by mail-ve0-f172.google.com with SMTP id cz11so1023035veb.17 for ; Tue, 19 Mar 2013 19:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=mnZ8cFTjVf1MsQ1lNKVXXThPFerrwNb/94H+4MoK9So=; b=jSb+7eS+Le4wgwaBA8GFIY2iwQOXnprRfua6taSnYjg9aqThTYzC5uxQ3+fQnw/zhP eF4yi4vJzh3geMZ6+yPhi9h4CcXavmxNy2WP+D3LS7ksmNAM/gT2MNDEn8t318bjSlau 1D9onRaL1R27AoHbT+muLPDrP4TqYnnYGsrjisQ2PQKvsebxNYytZ8KLqHfkVrIL6s0R GIEluq3pckAT5wJkV/zoT0kpd2OmBPp4TszDk87r6Gk2O3hHXUjfz4fOnOTOC9/kP3tj LupEcC66doXYLCx5hzUyunWj8lL0Qwb44sjeC9loo9o7ZjoSOW3QGTRMg9dcVHoCwzr6 nKjw== X-Received: by 10.52.27.138 with SMTP id t10mr4777639vdg.59.1363746201037; Tue, 19 Mar 2013 19:23:21 -0700 (PDT) Received: from [192.168.2.19] (pool-173-69-170-178.bltmmd.fios.verizon.net. [173.69.170.178]) by mx.google.com with ESMTPS id h11sm32994331vdj.12.2013.03.19.19.23.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 19:23:20 -0700 (PDT) Message-ID: <51491DA8.8090107@gmail.com> Date: Tue, 19 Mar 2013 22:23:36 -0400 From: Josh Elser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: dev@accumulo.apache.org Subject: Re: Compiling Under Windows (unable to execute generate-thrift.sh) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I may have to disagree with your profile names, but your ideas seem sound :) Actually, I'd rather see the entire plugin be lifted into the profile (as 99% of the time when you're building, the thrift classes aren't changing). So, when someone actually does make changes to the thrift definitions, they could run: `mvn package -Pthrift` to make the build operate as it does now. Activating no thrift profile could just compile the checked-in thrift java classes. Likewise, why not make a top-level `windows` profile, which changes the property as you configured below. So, in your case in Windows, you could: `mvn package -Pthrift,windows` Which would compile the generate the thrift classes using the batch script. Thoughts? I'd be happy to help get us to that point if this is something you would find useful. On 3/19/2013 9:50 PM, David Medinets wrote: > Using the coberatura profile in my VirtualBox was too slow. I'm in the > mood to write unit tests so wanted to see how hard it would be to run > the tests in Windows (i.e., not in my VirtualBox). > > I think I have found a solution to this issue. If anyone validates > this approach, I'll create a JIRA ticket for trunk and commit this > change: > > In the trace, core, and proxy modules, change pom.xml by adding two profiles: > > > thrift-not-windows > > > !windows > > > > ${basedir}/src/main/scripts/generate-thrift.sh > > > > thrift-windows > > > windows > > > > ${basedir}/src/main/scripts/generate-thrift.bat > > > > Then change the generate-thrift section to be: > > > ${thift.executable} > > > I created a very simple batch file: > > rem generate-thrift.bat > rem > remo placeholder 'do-nothing' script. > > Comments? > > On Tue, Mar 19, 2013 at 9:33 PM, Eric Newton wrote: >> Just comment out the module in trace/pom.xml that attempts to run the >> thrift compiler. >> >> I'm curious... why run windows? >> >> -Eric >> >> >> On Tue, Mar 19, 2013 at 7:40 PM, David Medinets wrote: >> >>> Out of curiosity I tried to compile Accumulo using Netbeans on Windows >>> and run into the following error. Is it easy (possible) to avoid >>> executing this script when using Windows? >>> >>> Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec >>> (generate-thrift) on project accumulo-trace: Command execution failed. >>> Cannot run program >>> >>> "C:\Users\medined\Documents\NetBeansProjects\accumulo\trunk\trace\src\main\scripts\generate-thrift.sh" >>> (in directory >>> "C:\Users\medined\Documents\NetBeansProjects\accumulo\trunk\trace"): >>> CreateProcess error=193, %1 is not a valid Win32 application -> [Help >>> 1] >>>