Skip to Content
author's profile photo Former Member
Former Member

hybris platform incremental build

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 01, 2016 at 10:52 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.