buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <boisv...@intalio.com>
Subject Re: question about Test task
Date Fri, 27 Mar 2009 23:45:33 GMT
In other words, in this case the test + packaging tasks would be avoided if
the dependency was:

project("mod1").compile.target

I would be nice to have a shortcut for this.  Let's try it for a while
first.

alex




On Fri, Mar 27, 2009 at 3:39 PM, Assaf Arkin <arkin@intalio.com> wrote:

> On Fri, Mar 27, 2009 at 3:36 PM, Alexis Midon <alexismidon@gmail.com>
> wrote:
>
> > I use the project() method to declare the dependency.
>
>
> Then yes. project("mod1") is the same as project("mod1").packages.
>
> Assaf
>
>
> >
> >
> >
> > define "hello-dolly" do
> >
> >  define "mod1" do
> >    package(:jar)
> >  end
> >
> >  define "mod2" do
> >    compile.with project("mod1")
> >    package(:jar)
> >  end
> >
> > end
> >
> > Alexis
> >
> >
> > On Fri, Mar 27, 2009 at 3:31 PM, Assaf Arkin <arkin@intalio.com> wrote:
> >
> > > On Fri, Mar 27, 2009 at 2:42 PM, Alexis Midon <alexismidon@gmail.com>
> > > wrote:
> > >
> > > >
> > > > Hi guys,
> > > >
> > > > I have attached a simple HelloWorld project, with 2 modules, mod2
> > depends
> > > > on mod1.
> > > > When I test mod2, mod1 gets packaged. is that the expected behavior?
> > I'd
> > > > say no.
> > >
> > >
> > > Does mod2 have mod1.jar as a classpath dependency?
> > >
> > > Assaf
> > >
> > >
> > > >
> > > >
> > > >  ~/p/hello-dolly$buildr clean test
> > > > (in /home/alexis/p/hello-dolly, development)
> > > > Cleaning hello-dolly
> > > > Testing hello-dolly
> > > > Compiling hello-dolly:mod1 into
> > > > /home/alexis/p/hello-dolly/mod1/target/classes
> > > > Packaging hello-dolly-mod1-1.0.0.jar
> > > > Compiling hello-dolly:mod2 into
> > > > /home/alexis/p/hello-dolly/mod2/target/classes
> > > > Testing hello-dolly:mod1
> > > > Testing hello-dolly:mod2
> > > > Compiling hello-dolly:mod2:test into
> > > > /home/alexis/p/hello-dolly/mod2/target/test/classes
> > > > Running tests in hello-dolly:mod2
> > > > Trying to override old definition of datatype junit
> > > >
> > > >
> > > > Alexis
> > > >
> > >
> >
>

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