Hi, "*" exclude matches folder name "abc". In your old configuration you forced to skip directory deletion.
2009/8/26 grumpypuppy <[email protected]> > > Thank you. It works. > I went back to my configuration, it also works as soon as I took out > <excludes> tag. > > So, just curious, the plugin get confused with <excludes> tag? > > > Alexander-129 wrote: > > > > Hi, > > Maven-clean-plugin is smart enough to delete directory [?] Try this: > > > > <plugin> > > <artifactId>maven-clean-plugin</artifactId> > > <configuration> > > <verbose>true</verbose> > > <filesets> > > <fileset> > > <directory>../../ext</directory> > > <followSymlinks>false</followSymlinks> > > <includes> > > * <include>abc</include>* > > </includes> > > </fileset> > > </filesets> > > </configuration> > > </plugin> > > > > 2009/8/26 grumpypuppy <[email protected]> > > > >> > >> Hello All, > >> I am trying to delete an additional directory and files inside it with > >> the > >> maven clean plugin. > >> Say, the directory is called "abc". It resides in "ext" which contains > >> several sub directories. With the configuration below, I am able to > >> delete > >> the *content* of "abc" (both files and directories) but not the > directory > >> itself. > >> > >> Any idea how I can delete "abc" as well? Thank you in advance! > >> P.S. Currently, I have to use the antrun plugin to do so. It'd be > neater > >> if > >> I can do it with the clean plugin :) > >> > >> <plugin> > >> <artifactId>maven-clean-plugin</artifactId> > >> <configuration> > >> <verbose>true</verbose> > >> <filesets> > >> <fileset> > >> <directory>../../ext</directory> > >> <followSymlinks>false</followSymlinks> > >> <includes> > >> <include>abc/</include> > >> </includes> > >> <excludes> > >> <exclude>*</exclude> > >> </excludes> > >> </fileset> > >> </filesets> > >> </configuration> > >> </plugin> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Maven-clean-plugin---delete-additional-directories-tp25143496p25143496.html > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > > > -- > > Regards, > > Alexander > > > > > > -- > View this message in context: > http://www.nabble.com/Maven-clean-plugin---delete-additional-directories-tp25143496p25145064.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Regards, Alexander
