-----Original Message-----
From: Cantalupo, Todd
Sent: Monday, June 07, 2010 9:33 AM
To: '[email protected]'
Subject: RE: [mojo-user] Re: [Tomcat Plugin] Deleting work directory
Hi -
I had problems with Tomcat not redploying as I'd like so I used an ant task to
clean out the work directory before the new WAR was copied over. That was the
only way that I found to guarantee that it was cleaned out.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-dm.war-to-tomcat-webapps</id>
<phase>pre-integration-test</phase>
<configuration>
<tasks>
<delete dir="${catalina.home}/${artifactId}"></delete>
<copy file="${build.target.directory}/${artifactId}.war"
todir="${catalina.home}"></copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Hope this is what you were looking for.
-----Original Message-----
From: Andreas Hartmann [mailto:[email protected]]
Sent: Monday, June 07, 2010 9:15 AM
To: [email protected]
Subject: [mojo-user] Re: [Tomcat Plugin] Deleting work directory
Am 12.05.10 12:09, schrieb Andreas Hartmann:
> Hi everyone,
>
> we're using the Tomcat plugin to deploy our webapps (mvn
> tomcat:redeploy). This works fine so far. But: the work directory of the
> web application is not properly cleared. Strangely though, it seems to
> be cleared and then re-populated with the old versions:
>
> At t1: Deploy version v1
> At t2: Deploy version v2
>
> After this, the files in the work directory are still the files from v1,
> but they have t2 as creation timestamps.
>
> Any ideas what we can do about this? Thanks a lot in advance!
Nobody? I would have thought that this is a pretty common issue …
Thanks for any hints!
Best regards,
Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email