ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dtown <dtow...@gmail.com>
Subject Re: javac exclude not working for directories
Date Thu, 22 Mar 2007 21:33:44 GMT
Turns out your right...critical mistake on my part, I had a cross-package
dependency where I shouldn't have. Funny how 1 line will kill your build
script.

Also, just to note, I removed the ** from my includes/excludes, and it
behaved as expected.

Thanks again!



On 3/22/07, Matt Benson <gudnabrsam@yahoo.com> wrote:
>
>
> --- dtown <dtown22@gmail.com> wrote:
>
> > I tried that before, and it failed. I attempted to
> > compile classes in the
> > directories I wanted to exclude (it failed because
> > they have dependencies
> > which I did not include in the classpath)
>
> Okay, wait.  First, yes, I forgot that a pattern
> ending in / has ** implicitly tacked on.  Now let me
> try to understand the rest of your problem...
>
> >
> > Here is the task I used:
> >
> > javac srcdir="${root}"
> >             destdir="${classes}"
> >             debug="on"
> >             debuglevel="lines,source"
> >             source="1.5"
> >             includes="org/domain/dir1/**,
> > org/aemf/dir2/**"
> >             excludes="org/domain/dir1/app2/**,
> > org/domain/dir1/app3/**"
> >             classpath= "${compile.comm};
> > ${compile.db4.3}; ${compile.swing};
> > ${compile.xml}"  >
> > </javac>
>
> Do any of the classes in the directories you DID
> include reference the ones you've excluded?  Beyond
> this, we'll probably need some kind of example
> structure you can publish in a Bugzilla report to
> reproduce the problem, although I suspect in the
> course of preparing it you're likely to figure out
> what went wrong yourself.
>
> regards,
> Matt
>
> >
> > On 3/22/07, Matt Benson <gudnabrsam@yahoo.com>
> > wrote:
> > >
> > > You've excluded the directories, but not their
> > > contents.  Append ** to each.
> > >
> > > -Matt
> > >
> > > --- dtown <dtown22@gmail.com> wrote:
> > >
> > > > I can't seem to figure out what I am doing
> > wrong.
> > > > The following is my javac
> > > > task:
> > > >
> > > > <javac srcdir="${root}"
> > > >            destdir="${classes}"
> > > >            debug="on"
> > > >            debuglevel="lines,source"
> > > >            source="1.5"
> > > >            includes="org/domain/dir1/,
> > > > org/aemf/dir2/"
> > > >            excludes="org/domain/dir1/app2/,
> > > > org/domain/dir1/app3/"
> > > >            classpath= "${compile.comm};
> > > > ${compile.db4.3}; ${compile.swing};
> > > > ${compile.xml}"  >
> > > >     </javac>
> > > >
> > > >
> > > > I basically want to exclude everything within
> > the
> > > > dir1 & dir2
> > > > (subdirectories included), and exclude the
> > > > directories dir1/app2 & dir2/app3
> > > > (and all of their subdirectories). The include
> > works
> > > > as expected, but the
> > > > directories are not excluded.
> > > >
> > > > Any ideas?
> > > >
> > > > thanks!
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
> ____________________________________________________________________________________
> > > Expecting? Get great news right away with email
> > Auto-Check.
> > > Try the Yahoo! Mail Beta.
> > >
> >
> http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > user-help@ant.apache.org
> > >
> > >
> >
>
>
>
>
>
> ____________________________________________________________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and
> hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message