Artifact regeneration

Does IDEA rebuild artifacts even if none of their dependencies have changed?

Even if it doesn't rebuild, IDEA does run the post-build ant scripts even if the artifact hasn't changed.

Could this be fixed?  I have a project with several dozen artifacts and it's pain to wait for them to rebuild (and for all the post-install hooks to run) even if only one of them has changed.  It also seems to run them all at once which can reduce my box to a quivering mass of jelly.

Thanks so much!

-c

4 comments

The post-processing ant scripts indeed may be called on build if artifact hasn't changed. This problem will be fixed in next EAP build.
However IDEA build artifacts if it isn't required. May be you have 'Build on make' option enabled for some artifacts? In that case IDEA will build all
related artifacts when you invoke 'Compile' or 'Make' action.

Does IDEA rebuild artifacts even if none of their dependencies have changed?

>

Even if it doesn't rebuild, IDEA does run the post-build ant scripts even if the artifact hasn't changed.

>

Could this be fixed?  I have a project with several dozen artifacts and it's pain to wait for them to rebuild (and for all the post-install hooks to run) even if only one of them is painful.  It also seems to run them all at once which can reduce my box to a quivering mass of jelly.

>

Thanks so much!

>

-c

>

---
Original message URL: http://devnet.jetbrains.net/message/5275371#5275371



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Is there a bug for the fact that post-artifact scripts are run every time?  I looked around on YouTrack and couldn't find it.

Also, just to be clear: if "Build on Make" is checked, this means, rebuild this artifact every time the project is made, regardless of whether its dependencies change?  If it's not checked, then the artifact is built only if it's dependencies change?  This is the opposite of what I would expect: that "Build on Make" means "when the project is made, build this artifact if it's dependencies change" and unchecked means "only build this artifact when I explicitly ask for it via Build > Build Artifacts."

Thanks,

-c

0

The bug about post-processing scripts indeed isn't filed in YouTrack. Feel free to create an issue about this bug if it would reproduce in the next
EAP build.

I said that IDEA will build all related artifacts on 'Make' if 'Build on make' option is selected. 'Related artifacts' means 'artifacts which contains
'Module compile output' elements for the module containing Java files you're compiling'. If 'Build on make' option is unchecked IDEA will build the
artifact only when it is asked explicitly, e.g. by using Build Artifacts action, 'Build artifacts' option in a run configuration, Update Running
Application action.

Is there a bug for the fact that post-artifact scripts are run every time?  I looked around on YouTrack and couldn't find it.

>

Also, just to be clear: if "Build on Make" is checked, this means, rebuild this artifact every time the project is made, regardless of whether its dependencies change?  If it's not checked, then the artifact is built only if it's dependencies change?  This is the opposite of what I would expect: that "Build on Make" means "when the project is made, build this artifact if it's dependencies change" and unchecked means "only build this artifact when I explicitly ask for it via Build>  Build Artifacts."

>

Thanks,

>

-c

>

---
Original message URL: http://devnet.jetbrains.net/message/5275672#5275672



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.