[jbosstools-dev] a problem of classpath too long
Max Rydahl Andersen
max.andersen at redhat.com
Fri Mar 6 15:55:44 EST 2009
>>
>> p.s. Make sure you create a uniquely named file and delete it again ;)
> I use some codes to generate jar:
> tempJar = File.createTempFile("temp", ".jar");
> org.jboss.tools.common.util.FileUtil.jar(new File[0],
> tempJar.getAbsolutePath(), mf);
>
> The jar is just a temp file, so we need not to care the uniquely named
> file and how to delete it.
Well, you would be running this possibly many times so why wait until
your VM shutsdown to delete all those jars ?
/max
More information about the jbosstools-dev
mailing list