CORE-4755: allow the output folder to be specified for foundation API apps