Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] CBI "clean" build and SWT

Andrey,

Tycho is calling ant to get SWT build, therefore mvn clean is not aware
of artifacts created in that way. I'm not a maven expert, but I'd assume
that in case of regular builds artifacts are placed in well-known
locations, which are later deleted during clean phase. 

Quick google search revealed that there is a technical possibility [1]
to call a clean target from the SWT build.xml, although I really have no
idea what will be the result. You may open a bug for that (a patch would
be welcome, too).

[1]
http://stackoverflow.com/questions/3977898/how-to-bind-maven-antrun-plugin-to-the-clean-phase


On Fri, 2012-09-07 at 13:12 +0200, Andrey Loskutov wrote:
> Hi Krzysztof,
> 
> thank you for the hint with the Git.
> 
> What I still expect "as a dummy user" is that "clean" build is "clean"  
> without any extra commands required from user.
> 
> So the question is - is this a CBI specific issue with SWT build, or SWT  
> build itself doesn't properly perform cleanup?
> 
> So I'm not sure if SWT build in CBI behaves differently as "usual" one,  
> especially because of the native bits. I guess this is CBI issue, as the  
> whole "eclipse.platform.swt.binaries" structure seems came from CBI/maven  
> build.
> 
> On Fri, 07 Sep 2012 13:04:02 +0200, Krzysztof Daniel <kdaniel@xxxxxxxxxx>  
> wrote:
> 
> > Andrey,
> >
> > The CBI based SWT built does nothing more complicated than the regular
> > build - it just calls proper build.xml script to get everything created.
> >
> > The observations you have (especially that the first build is correct)
> > indicate rather that mvn clean does not clean as many things as you'd
> > like.
> >
> > You may want to run git clean -d -F in affected repositories to get rid
> > off all untracked files.
> 

-- 
Krzysztof Daniel <kdaniel@xxxxxxxxxx>
Red Hat



Back to the top