d-man
d-man

Reputation: 58103

Maven delete external files

I am using Eclipse/maven plugin. I want to delete external file with aboslute path, i have following example but it claims to delete only relative files which resides inside the project

<plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>some/relative/path</directory>
                            <includes>
                                <include>**/*.tmp</include>
                                <include>**/*.log</include>
                            </includes>
                            <excludes>
                                <exclude>**/important.log</exclude>
                                <exclude>**/another-important.log</exclude>
                            </excludes>
                            <followSymlinks>false</followSymlinks>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>

Upvotes: 4

Views: 7894

Answers (1)

d-man
d-man

Reputation: 58103

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-clean-plugin</artifactId>
    <version>2.4.1</version>
    <configuration>
        <followSymLinks>false</followSymLinks>
        <filesets>
            <fileset>
            <directory>D:\apache-tomcat-6.0.24\webapps\cat360-web-1.0.0</directory>
            </fileset>
        </filesets>
    </configuration>
</plugin>

Upvotes: 7

Related Questions