Artifact Deleted from old output directory
Answered
I'm working in multiple environments, I use some of my modules across these environments.
I've encountered an issue for me, where if I build my artifact in one environment output directory and then change my output directory to a different environment the older artifact is deleted when I build the artifact in the new environment output directory.
Is there anyway to change this behavior?
I've searched for a way to build to multiple output directories, but this does't seem to be possible either.
Please sign in to leave a comment.
Hello,
Do you use "Build" or "Rebuild" action? Do you use any build tools (Maven, Gradle)?
Am I got you right that if you build artifact in folder "out1", change artifact output folder to "out2" and build it again, then "out1" folder will be cleaned and artefact will be created in "out2" folder?
Hi,
I use "Build", I do not use any build tools.
Yes you are correct, except it does not clean the directory it only deletes the artifact I am building.
I have "clear output directory on rebuild" unchecked, not that it makes any difference as I'm using "Build"
> except it does not clean the directory it only deletes the artifact I am building
What is left in that directory?
Could you please provide idea.log and build.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?