Overwriting the Temp-Directory for exploded WARs

I have some web modules in a project, all configured to not create exploded war deployments. Issue number one would be that IDEA creates exploded deployments on "Make Project" or "Make Module" anyway, but in the temp-directory of the current user. While I don't mind the building of the temporary war directories, I do mind the fact that I can't tell IDEA where to put it. I set the user's TEMP and TMP variables to a different folder, but IDEA seems to ignore these. The issue is that there's a virus scanner installed which happily scans all files put into the directory, and since the project contains a lot of libraries, make takes a while and completely blocks the IDE.

I have some directories which are excluded from scanning, and if IDEA has to create these temporary directories, I'd like to tell it where to put it. Is there any way to specify an alternative temp directory? And maybe another to fully prevent it from creating those exploded war directories at all?
System is Windows btw.

Any help would be appreciated.

Cheers, Mathias

8 comments

Hello Mathias,

IDEA creates exploded war directories in two cases:
1) you've marked "Run Jasper validator for JSP files" checkbox for your Web
module.
2) your Web module is included in a JavaEE Application module which is checked
to build exploded directory.

In both cases it's necessary to build exploded directory. If placing the
exploded directory under temp-directory isn't suitable you can mark "Create
Exploded directory" checkbox and specify path to any desired location.

I have some web modules in a project, all configured to not create
exploded war deployments. Issue number one would be that IDEA creates
exploded deployments on "Make Project" or "Make Module" anyway, but in
the temp-directory of the current user. While I don't mind the
building of the temporary war directories, I do mind the fact that I
can't tell IDEA where to put it. I set the user's TEMP and TMP
variables to a different folder, but IDEA seems to ignore these. The
issue is that there's a virus scanner installed which happily scans
all files put into the directory, and since the project contains a lot
of libraries, make takes a while and completely blocks the IDE.

I have some directories which are excluded from scanning, and if IDEA
has to create these temporary directories, I'd like to tell it where
to put it. Is there any way to specify an alternative temp directory?
And maybe another to fully prevent it from creating those exploded war
directories at all?

System is Windows btw.

Any help would be appreciated.

Cheers, Mathias



0

That worked! Thanks a lot. But is it possible to tell IDEA to put the exploded stuff somewhere else?

Cheers, Mathias

0

Hello Mathias,

You can specify any desired location for exploded directory using the text
field under "Create Web module exploded directory" checkbox.

That worked! Thanks a lot. But is it possible to tell IDEA to put the
exploded stuff somewhere else?



0

So that will prevent IDEA from building the stuff in the temp directory?

Cheers, Mathias

0

Hello Mathias,

If Jasper validation is disabled and Web module is not included in JavaEE
App module IDEA should not build exploded directory.

So that will prevent IDEA from building the stuff in the temp
directory?

Cheers, Mathias



0

Well I was rather wondering, if I wanted Jasper validation and preventing IDEA from building the exploded WARs in the temp directory, would enabling the creation of an exploded WAR in the settings in a custom directory prevent IDEA from building it in the temp directory and instead only building it in the specified directory?

Cheers, Mathias

0

Hello Mathias,

Yes.

Well I was rather wondering, if I wanted Jasper validation and
preventing IDEA from building the exploded WARs in the temp directory,
would enabling the creation of an exploded WAR in the settings in a
custom directory prevent IDEA from building it in the temp directory
and instead only building it in the specified directory?

Cheers, Mathias



0

Thanks a lot for your help!

Cheers, Mathias

0

Please sign in to leave a comment.