Здравствуйте!
    Ваше письмо принято за спам и удалено.
    Если вы считаете это ошибкой, то позвоните пожалуйста по телефону 
+7(812)578-09-03 в службу поддержки.
===Вашего письмо===
    Return-Path: <[EMAIL PROTECTED]>
Received: from <[EMAIL PROTECTED]>
  by inc.ru (CommuniGate Pro RULES 4.1.8)
  with RULES id 3640817; Wed, 17 Sep 2008 21:26:42 +0400
X-Autogenerated: Mirror
X-Mirrored-by: <[EMAIL PROTECTED]>
Received: from mail.netltd.ru (account [EMAIL PROTECTED])
  by inc.ru (CommuniGate Pro RPOP 4.1.8)
  with RPOP id 3640816 for [EMAIL PROTECTED]; Wed, 17 Sep 2008 21:26:42 +0400
X-Antivirus-passed: yes
X-Real-To: [EMAIL PROTECTED]
Received: from <[EMAIL PROTECTED]>
  by inc.ru (CommuniGate Pro RULES 4.1.8)
  with RULES id 26683999; Wed, 17 Sep 2008 21:24:50 +0400
X-Autogenerated: Mirror
X-Mirrored-by: <[EMAIL PROTECTED]>
X-Antispam-passed: yes
X-Antispam: yes
X-Real-To: <[EMAIL PROTECTED]>
X-Antivirus: yes
Received: from mail.apache.org ([140.211.11.2] verified)
  by inc.ru (CommuniGate Pro SMTP 4.1.8)
  with SMTP id 26683998 for [EMAIL PROTECTED]; Wed, 17 Sep 2008 21:24:49 +0400
Received: (qmail 87207 invoked by uid 500); 17 Sep 2008 17:24:41 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:users@maven.apache.org>
List-Id: "Maven Users List" <users.maven.apache.org>
Reply-To: "Maven Users List" <users@maven.apache.org>
Delivered-To: mailing list users@maven.apache.org
Received: (qmail 87196 invoked by uid 99); 17 Sep 2008 17:24:41 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 10:24:41 -0700
X-ASF-Spam-Status: No, hits=2.0 required=10.0
        tests=HTML_MESSAGE,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of [EMAIL PROTECTED] designates 
65.55.116.16 as permitted sender)
Received: from [65.55.116.16] (HELO blu0-omc1-s5.blu0.hotmail.com) 
(65.55.116.16)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 17:23:39 +0000
Received: from BLU142-W28 ([65.55.116.8]) by blu0-omc1-s5.blu0.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.3959);
         Wed, 17 Sep 2008 10:24:11 -0700
Message-ID: <[EMAIL PROTECTED]>
Content-Type: multipart/alternative;
        boundary="_adb04a9c-9741-4521-b0c0-d51ed5296ddb_"
X-Originating-IP: [24.34.14.72]
From: Martin Gainty <[EMAIL PROTECTED]>
To: Maven Users List <users@maven.apache.org>, <[EMAIL PROTECTED]>
Subject: RE: clean won't delete stuff that isn't in ./target
Date: Wed, 17 Sep 2008 13:24:11 -0400
Importance: Normal
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
 <[EMAIL PROTECTED]>
MIME-Version: 1.0
X-OriginalArrivalTime: 17 Sep 2008 17:24:11.0855 (UTC) 
FILETIME=[334825F0:01C918EA]
X-Virus-Checked: Checked by ClamAV on apache.org




boolean property inside MavenProject
http://www.java2s.com/Open-Source/Java-Document/Build/maven/org/apache/maven/project/MavenProject.java.java-doc.htm

so in your project.xml after the initial project node place the childNode 
executionRoot and set to true e.g.

<project xmlns="http://maven.apache.org/POM/3.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/3.0.0 
http://maven.apache.org/maven-v3_0_0.xsd";>
<executionRoot>true</executionRoot>

?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Subject: RE: clean won't delete stuff that isn't in ./target
> Date: Wed, 17 Sep 2008 12:05:32 -0400
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org; [EMAIL PROTECTED]
> 
> I don't understand why that test (isExecutionRoot()) is even there to begin 
> with.
> 
> Why does that matter?  If you're specifying a fileset, isn't it to get rid of 
> stuff outside of the src/target directories? 
> 
> -----Original Message-----
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 17, 2008 11:02 AM
> To: Maven Users List; [EMAIL PROTECTED]
> Subject: RE: clean won't delete stuff that isn't in ./target
> 
> 
> what happens when if ( !project.isExecutionRoot() ) is NOT NULL?
> why not go ahead and submit your patch..
> ?
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and Sender 
> does not endorse distribution to any party other than intended recipient. 
> Sender does not necessarily endorse content contained within this 
> transmission. 
> 
> 
> > Subject: RE: clean won't delete stuff that isn't in ./target
> > Date: Wed, 17 Sep 2008 09:32:02 -0400
> > From: [EMAIL PROTECTED]
> > To: users@maven.apache.org; [EMAIL PROTECTED]
> > 
> > To all that have replied -
> > 
> > I tried the exact syntax below and it doesn't work.
> > 
> > Another part to this is we have a parent -> child -> child pom relation 
> > ship, and the clean target is in the lowest level.  Running from the top 
> > most level, clean does not work.
> > 
> > From my last run, here's what I have in my pom:
> > 
> >    <plugin>
> >     <artifactId>maven-clean-plugin</artifactId>
> >     <version>2.2</version>
> >     <configuration>
> >       <fileset>
> >        <directory>${some.var}/../deleteme</directory>
> >        <directory>C:/full/path/to/deleteme</directory>
> >       </fileset>
> >      <verbose>true</verbose>
> >     </configuration>
> >    </plugin>
> > Running from the top most level, "deleteme" still lives.
> > 
> > I've tried every possible combination of <filesets><fileset><directory> but 
> > nothing works.
> > 
> > Looking at the source for clean, I see this:
> > 
> > 209   if ( !project.isExecutionRoot() )
> > 210       {
> > 211            String projectBasedir = StringUtils.replace( 
> > project.getBasedir().getAbsolutePath(),
> > 212                                   "\\", "/" );
> > 213            String filesetDir = StringUtils.replace( 
> > fileset.getDirectory(), "\\", "/" );
> > 214 
> > 215            if ( filesetDir.indexOf( projectBasedir ) == -1 )
> > 216            {
> > 217                 fileset.setDirectory( projectBasedir + "/" + filesetDir 
> > );
> > 218            }
> > 219        }
> > 220
> > 221  fileSetManager.delete( fileset, failOnError );
> > 
> > #1 - How would this block of code ever get executed in my case?  
> > #2 - That second if statement, filesetDir does not contain the project 
> > basedir at all, so this code prepends it to each fileset?!
> > 
> > I've written a plugin (maven-really-clean) that just takes a series of 
> > directories and using plexus.file utils, deletes them, regardless of where 
> > they are on your system.
> > 
> > The clean plugin simply does NOT work.
> > 
> > 
> > -----Original Message-----
> > From: Karl Heinz Marbaise [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 17, 2008 5:16 AM
> > To: Maven Users List
> > Subject: Re: clean won't delete stuff that isn't in ./target
> > 
> > Hi there,
> > you can simply use:
> > 
> > <configuration>
> >    
> > <fileset><directory>C:/some/other/dir/deleteme</directory></fileset>
> > </configuration>
> > Nothing more...
> > 
> > And as mentioned...absolute directories are a very bad idea...
> > 
> > Kind regards
> > Karl Heinz Marbaise
> > -- 
> > SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
> > Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
> > Hauptstrasse 177                         USt.IdNr: DE191347579
> > 52146 Wьrselen                           http://www.soebes.de
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> _________________________________________________________________
> Want to do more with Windows Live? Learn "10 hidden secrets" from Jamie.
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to