Здравствуйте!
    Ваше письмо принято за спам и удалено.
    Если вы считаете это ошибкой, то позвоните пожалуйста по телефону 
+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 3639749; Wed, 17 Sep 2008 18:08:28 +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 3639748 for [EMAIL PROTECTED]; Wed, 17 Sep 2008 18:08:28 +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 26680404; Wed, 17 Sep 2008 18:07:14 +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 26680393 for [EMAIL PROTECTED]; Wed, 17 Sep 2008 18:07:14 +0400
Received: (qmail 77837 invoked by uid 500); 17 Sep 2008 14:07:05 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[email protected]>
List-Id: "Maven Users List" <users.maven.apache.org>
Reply-To: "Maven Users List" <[email protected]>
Delivered-To: mailing list [email protected]
Received: (qmail 11899 invoked by uid 99); 17 Sep 2008 13:33:03 -0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
        tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of [EMAIL PROTECTED] designates 
12.197.7.59 as permitted sender)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: clean won't delete stuff that isn't in ./target
Date: Wed, 17 Sep 2008 09:32:02 -0400
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: clean won't delete stuff that isn't in ./target
Thread-Index: AckYpnHuqRBiYfqzRUKYTCLDHAks2gAIP9xQ
From: "EJ Ciramella" <[EMAIL PROTECTED]>
To: "Maven Users List" <[email protected]>,
        <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 17 Sep 2008 13:32:02.0868 (UTC) 
FILETIME=[C4F56740:01C918C9]
X-Virus-Checked: Checked by ClamAV on apache.org



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]



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

Reply via email to