Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4E9DF32C for ; Thu, 4 Apr 2013 06:13:34 +0000 (UTC) Received: (qmail 43428 invoked by uid 500); 4 Apr 2013 06:13:32 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 43358 invoked by uid 500); 4 Apr 2013 06:13:32 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 43328 invoked by uid 99); 4 Apr 2013 06:13:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 06:13:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anders.g.hammar@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 06:13:27 +0000 Received: by mail-wi0-f169.google.com with SMTP id c10so314347wiw.4 for ; Wed, 03 Apr 2013 23:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=sdqp7ekAZsCEO4fExfS55zv7npZQezk21/wg8lE3Nu0=; b=DGCfTvvTq912xS61RezhzWzBMCIdFCqEyS8XiwFPsePls0hhluHghN/IpXt3uAd3ha 3dBWUjOVyUp3Pl8jWylUoTaySnk6F2P/EP6EOUDfynYVr6+Rq1eG3W598tFb2LVhTAuU aKJTgAzIDq/ee7YoyR5z8Z23k7hURTS0+vpYZWum0yIT27C9Nt7LLT/LQsQKeAjXruns FbDgX9bQhWfbf2ReWgPmAxxop4PEnMWgE5R2Qq+5wzZvO1HECNd7M/kDhWXZVp0OdPPK bsv0ZnuXYEaNrJBRhbAlhPuWtqiIffzXvX3FDMO0A77OrK5OMNNmPq6KzIMcYZZmCPnD /w4A== MIME-Version: 1.0 X-Received: by 10.180.73.212 with SMTP id n20mr7021501wiv.11.1365055985665; Wed, 03 Apr 2013 23:13:05 -0700 (PDT) Sender: anders.g.hammar@gmail.com Received: by 10.194.15.201 with HTTP; Wed, 3 Apr 2013 23:13:05 -0700 (PDT) In-Reply-To: <1365044091075-5752598.post@n5.nabble.com> References: <1365044091075-5752598.post@n5.nabble.com> Date: Thu, 4 Apr 2013 08:13:05 +0200 X-Google-Sender-Auth: tzcOcsw3Dm2vsGg_uWxwfxb-VAs Message-ID: Subject: Re: Possible to write a boolean expression in Maven? From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=f46d0438ee611fd19a04d982dd00 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0438ee611fd19a04d982dd00 Content-Type: text/plain; charset=ISO-8859-1 The only solution I can think of is to have two profiles each triggered by one of the properties and then set a third property which you use in the skip declaration. Remember to also define a default value for that third property to cover when neither of the profiles are triggered. I should state that i personally dislike profiles and think that the solution above is a filthy solution making the pom difficult to understand. You should settle on one single property. /Anders On Thu, Apr 4, 2013 at 4:54 AM, laredotornado-3 wrote: > Hi, > > I'm using Maven 3.0.3. Within one of my plugins, I have > > ${skipExecution} > > in which I define "skipExecution" within a profile. However, what I would > really like to say is > > ${skipExecution} || ${maven.test.skip} > > but I'm not sure how to say that in Maven. Any ideas? Thanks, - Dave > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Possible-to-write-a-boolean-expression-in-Maven-tp5752598.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --f46d0438ee611fd19a04d982dd00--