1

I have three different tenant present inside the custom folder.

<HYBRIS_HOME>/bin/custom
            |
            |
tenant1  tenant2 tenant3 

Whenever I execute ant clean all it builds all three tenants. Is there a way to only build one tenant at a time?

ANIL
  • 2,542
  • 4
  • 25
  • 44

1 Answers1

2

There is no out of the box option to build only extensions of a specific tenant.

By default hybris build all extensions mentionned in localextensions.xml with their dependencies.

You have a workaround although.

  • you can have several localextensions.xml and switch them with a script
  • you can use ant extensionsxml -Dplatform.extensions="ext1 ext2" -Dplatform.extensionsgen.filename=localextensions.xml to generated the extensions file for your tenant specific extensions
alain.janinm
  • 19,951
  • 10
  • 65
  • 112
  • So, there's now way to do it through a single `localextensions.xml` and `local.properties` file? – ANIL Dec 13 '16 at 07:26
  • Ootb no, but you can customize your ant buildcallbacks.xml in each extension. You may want to add "tenant parameter" and perform the build only if the desired tenant is passed in parameter. Check this post about if/else in ant. http://stackoverflow.com/q/14500576/1140748 – alain.janinm Dec 13 '16 at 08:29