Ant all v/s Ant clean all
Lets understand ant all and ant clean all
Hybris uses Ant as a build framework and it has come with its targets like ant all,ant clean all etc in Hybris.
We can see the list of ant targets by running ant –p command from the command prompt (hybris\bin\platform)
We basically use ant all or ant clean all commands to build the hybris framework.
Ant clean all
When we invoke ant clean all command from command prompt,it does below things
1) Check folder structure
It first checks the folder structure of Hybris installed directory.
It checks whether config,log,data,temp etc folders are available inside hybris folder.
If this folder structure is not available then it creates the folder structure
If this folder structure is already available then do nothing.
2) If there is no build, It will create a build from scratch, if there is any build exist, It will delete and recreate it
Ant all
1) It assumes folder structure is already exist
2) If there is no build, it will create a build from scratch, if there is any build exist, it will modify it rather than recreating it.
It’s advisable to use ant all more frequently for building the Hybris platform.
Use ant clean all during the first time setup or if some changes are not reflecting even after doing ant all.
Otherwise ant all should be fine for building hybris platform.
Ideally ant clean all does everything what ant all does and it also performs some additional tasks.
Ant all is faster than ant clean all for the above reasons.
And what happens with properties, beans, or item types if I don’t run ant all and restart the server?
If you don’t do the ant all & restart the server after making the changes to properties, beans or item types, then the modification will not show in your running server
Hi, any changes in items.xml file requires ant clean all or ant is sufficient to reflect the changes
As explained above ant all only responsible for creating or updating build. In case any changes in items.xml it needs to retreat the files/folders, for that you need o do ant clean all.
Dude! Thank you for such a clear explanation.
Thanks for this explanation.
Best example for this topic.Thank you
in “build” covers the gensrc or not ??
Hi KB,
very nice explanation. U are great 🙂
Thank you Saranya !!
Thank you
Perfeito!
Thank you very much for the help.
Thanks!!
Leitura feliz 🙂