[jboss-dev] tmp/ delete
Dimitris Andreadis
dandread at redhat.com
Fri Dec 10 10:22:03 EST 2010
In 4.x it was done at shutdown here:
http://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerImpl.java
...
// Cleanup tmp/deploy dir
log.debug("Deleting server tmp/deploy directory");
File tmp = config.getServerTempDir();
File tmpDeploy = new File(tmp, "deploy");
Files.delete(tmpDeploy);
Not sure about 5/6.
Ales Justin wrote:
> So that I'm not searching for a needle in the haystack,
> who could tell me how exactly we used to do this (https://issues.jboss.org/browse/JBAS-8718) in the past.
> (as it looks like we're missing that functionality atm in AS6 ...)
>
> 1) Where did we create tmp/ dir?
> Or was this done per each custom sub-dir via File::makedirs?
>
> 2) Where and when did we delete it?
> * at startup -- simply deleting old tmp/; which is probably more bullet proof than at shutdown
> * at shutdown
> * ...
>
> Thanks for any help / tip.
>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list