Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] split jars

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: alanhzone-xom AT yahoo.com
  • To: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] split jars
  • Date: Sun, 4 Apr 2010 10:51:49 -0700 (PDT)

Ok, sorry I messed the file structure on my last test so it looked like it
was working. reread the doc for the jar task, and this should do what you
need:

        <jar jarfile="${sources.jar}" basedir="${build.dir}/src">
                <exclude name= "nu/xom/tools/**" />
                <exclude name= "nu/xom/test/**" />
                <exclude name= "nu/xom/pantry/**" />
                <exclude name= "nu/xom/samples/**" />
        </jar>

alan

--- On Sun, 4/4/10, Elliotte Rusty Harold <elharo AT ibiblio.org> wrote:

From: Elliotte Rusty Harold <elharo AT ibiblio.org>
Subject: Re: [XOM-interest] split jars
To: alanhzone-xom AT yahoo.com
Cc: xom-interest AT lists.ibiblio.org
Date: Sunday, April 4, 2010, 7:15 AM



On Sat, Apr 3, 2010 at 10:48 PM, <alanhzone-xom AT yahoo.com> wrote:

Try this:


        <jardestFile="${sources.jar}" basedir="${build.dir}/src" >
            <fileset dir=".">

                <include name= "**/src/**" />
                <exclude name= "**/tools/**" />
                <exclude name= "**/test/**" />
            </fileset>

        </jar>

I think you'll get what you're looking for.


Nope. Just tried it and this one excludes tools but not tests.  :-(


At this point I'm willing to believe in either a bug or a design flaw in Ant
1.7.1.

--
Elliotte Rusty Harold
elharo AT ibiblio.org


>From elharo AT ibiblio.org Sun Apr 4 19:06:13 2010
Return-Path: <elharo AT ibiblio.org>
X-Original-To: xom-interest AT lists.ibiblio.org
Delivered-To: xom-interest AT lists.ibiblio.org
Received: by lists.ibiblio.org (Postfix, from userid 3002)
id 66C3E4C015; Sun, 4 Apr 2010 19:06:13 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on malecky
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE
autolearn=disabled version=3.2.3
Received: from mail-pz0-f204.google.com (mail-pz0-f204.google.com
[209.85.222.204])
by lists.ibiblio.org (Postfix) with ESMTP id 3B9904C014
for <xom-interest AT lists.ibiblio.org>;
Sun, 4 Apr 2010 19:06:11 -0400 (EDT)
Received: by pzk42 with SMTP id 42so687520pzk.4
for <xom-interest AT lists.ibiblio.org>;
Sun, 04 Apr 2010 16:06:11 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.143.33.1 with HTTP; Sun, 4 Apr 2010 16:06:11 -0700 (PDT)
In-Reply-To: <138601.76129.qm AT web32208.mail.mud.yahoo.com>
References: <i2n654a2bb31004040615wfff05b79gd66d3467143625f2 AT mail.gmail.com>
<138601.76129.qm AT web32208.mail.mud.yahoo.com>
Date: Sun, 4 Apr 2010 19:06:11 -0400
Received: by 10.143.87.3 with SMTP id p3mr1608406wfl.53.1270422371400; Sun, 04
Apr 2010 16:06:11 -0700 (PDT)
Message-ID: <m2m654a2bb31004041606jc60fc37i5b0914fce951510d AT mail.gmail.com>
From: Elliotte Rusty Harold <elharo AT ibiblio.org>
To: alanhzone-xom AT yahoo.com
Content-Type: text/plain; charset=UTF-8
X-Content-Filtered-By: Mailman/MimeDel 2.1.9
Cc: xom-interest AT lists.ibiblio.org
Subject: Re: [XOM-interest] split jars
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: XOM API for Processing XML with Java
<xom-interest AT lists.ibiblio.org>
List-Id: XOM API for Processing XML with Java <xom-interest.lists.ibiblio.org>
List-Unsubscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=unsubscribe>
List-Archive: <https://lists.ibiblio.org/sympa/arc/xom-interest>
List-Post: <mailto:xom-interest AT lists.ibiblio.org>
List-Help: <mailto:sympa AT lists.ibiblio.org?subject=HELP>
List-Subscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Apr 2010 23:06:13 -0000

On Sun, Apr 4, 2010 at 1:51 PM, <alanhzone-xom AT yahoo.com> wrote:

> Ok, sorry I messed the file structure on my last test so it looked like it
> was working. reread the doc for the jar task, and this should do what you
> need:
>
> <jar jarfile="${sources.jar}" basedir="${build.dir}/src">
> <exclude name= "nu/xom/tools/**" />
> <exclude name= "nu/xom/test/**" />
> <exclude name= "nu/xom/pantry/**" />
> <exclude name= "nu/xom/samples/**" />
> </jar>
>
>

Thank you! That did it.

I was tearing my hair out over this one.

I'll probably release 1.2.5 soon, and then see if the maven folks accept
this one.

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page