You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Grant Rettke <gr...@acm.org> on 2009/04/22 21:17:46 UTC

How to conditionally classes from the generated JAR?

Hi,

By default, we need to exclude some classes from inclusion in the JAR
file. It looks like in jar:jar I can use the excludes property to
specify this.

The thing is that, sometimes we do want to include these classes. I am
wondering what is the best way to allow for condition inclusion of
these classes within the JAR?

Traditional thought says that defining a value at the command line
makes sense, but I am not sure of how to make the exclusion
conditional based on that property.

Best wishes,

Grant

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to conditionally classes from the generated JAR?

Posted by Grant Rettke <gr...@acm.org>.
On Wed, Apr 22, 2009 at 2:21 PM, Stephen Connolly
<st...@gmail.com> wrote:
> put the exclusion in a profile

I was hoping to exclude by default, and have the profile include: but
I see that exclude trumps include! :)

I will have to work around this.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to conditionally classes from the generated JAR?

Posted by Grant Rettke <gr...@acm.org>.
On Wed, Apr 22, 2009 at 2:21 PM, Stephen Connolly
<st...@gmail.com> wrote:
> put the exclusion in a profile

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to conditionally classes from the generated JAR?

Posted by Stephen Connolly <st...@gmail.com>.
put the exclusion in a profile

Sent from my [rhymes with myPod] ;-)

On 22 Apr 2009, at 20:17, Grant Rettke <gr...@acm.org> wrote:

> Hi,
>
> By default, we need to exclude some classes from inclusion in the JAR
> file. It looks like in jar:jar I can use the excludes property to
> specify this.
>
> The thing is that, sometimes we do want to include these classes. I am
> wondering what is the best way to allow for condition inclusion of
> these classes within the JAR?
>
> Traditional thought says that defining a value at the command line
> makes sense, but I am not sure of how to make the exclusion
> conditional based on that property.
>
> Best wishes,
>
> Grant
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org