cancel
Showing results for 
Search instead for 
Did you mean: 

hybris platform incremental build

Former Member
0 Kudos

Hi, I am a new user to hybris. I have a question regarding the build targets configured for the platform.

Everytime i make any change, does hybris expects me to do a full build or clean all based targets? I am just wondering is there any other alternative other than using jrebel. Like running a incremental build instead of running a full build. Is there already any existing extension or target that could be configured to use this feature? This could save a lot of developer time.

When i say incremental build, i assume that only the affected/relevant files that got modified and only their respective build targets gets recompiled and built and published along with unchanged ones. If such feature is already there, please let me know how to use it. Everytime when i run a build, it consumes around 15 minutes for sure currently.

Also, one more question: As we use tomcat in development mode, why couldnt we just reload classes through context or server xml? this could avoid rebooting every single time a build is done

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

You don't need to run ant clean every time. Just using ant (the default target is all) will only build the classes that have changed. It will then restart the server for you.

The time when you're more likely to need to run a clean build is if you've renamed or removed java files when you don't want the old classes left.

You can also run into problems when changing the signature of methods because the callers won't be recompiled and you won't get errors because you're calling a method incorrectly. However your IDE should have told you about this sort of problem already if you're paying attention to the build errors.