@Test public void testBuildThatDoesNotUpdateTheCache() throws Exception { final Path path = path(); buildHelper.build(moduleService.resolveModule(path)); assertTrue(cachedFileSystemDoesNotChange()); }
public BuildResult build(final Module module) { try { cache.invalidateCache(module); Builder builder = cache.assertBuilder(module); final BuildResults results = builder.build(); BuildMessage infoMsg = new BuildMessage(); infoMsg.setLevel(Level.INFO); infoMsg.setText(buildResultMessage(module, results).toString()); results.addBuildMessage(0, infoMsg); return new BuildResult(builder, results); } catch (Exception e) { logger.error(e.getMessage(), e); return new BuildResult(null, buildExceptionResults(e, module.getPom().getGav())); } }
BuildHelper { public BuildResult build(final Module module) { try { cache.invalidateCache(module); Builder builder = cache.assertBuilder(module); final BuildResults results = builder.build(); BuildMessage infoMsg = new BuildMessage(); infoMsg.setLevel(Level.INFO); infoMsg.setText(buildResultMessage(module, results).toString()); results.addBuildMessage(0, infoMsg); return new BuildResult(builder, results); } catch (Exception e) { logger.error(e.getMessage(), e); return new BuildResult(null, buildExceptionResults(e, module.getPom().getGav())); } } }
BuildHelper { public BuildResult build(final Module module) { try { cache.invalidateCache(module); Builder builder = cache.assertBuilder(module); final BuildResults results = builder.build(); BuildMessage infoMsg = new BuildMessage(); infoMsg.setLevel(Level.INFO); infoMsg.setText(buildResultMessage(module, results).toString()); results.addBuildMessage(0, infoMsg); return new BuildResult(builder, results); } catch (Exception e) { logger.error(e.getMessage(), e); return new BuildResult(null, buildExceptionResults(e, module.getPom().getGav())); } } BuildHelper(); @Inject  BuildHelper(final POMService pomService,
                       final ExtendedM2RepoService m2RepoService,
                       final KieModuleService moduleService,
                       final DeploymentVerifier deploymentVerifier,
                       final LRUBuilderCache cache,
                       final Instance<PostBuildHandler> handlers,
                       final Instance<User> identity); }
BuildHelper { public BuildResult build(final Module module) { try { cache.invalidateCache(module); Builder builder = cache.assertBuilder(module); final BuildResults results = builder.build(); BuildMessage infoMsg = new BuildMessage(); infoMsg.setLevel(Level.INFO); infoMsg.setText(buildResultMessage(module, results).toString()); results.addBuildMessage(0, infoMsg); return new BuildResult(builder, results); } catch (Exception e) { logger.error(e.getMessage(), e); return new BuildResult(null, buildExceptionResults(e, module.getPom().getGav())); } } BuildHelper(); @Inject  BuildHelper(final POMService pomService,
                       final ExtendedM2RepoService m2RepoService,
                       final KieModuleService moduleService,
                       final DeploymentVerifier deploymentVerifier,
                       final LRUBuilderCache cache,
                       final Instance<PostBuildHandler> handlers,
                       final Instance<User> identity); BuildResult build(final Module module); IncrementalBuildResults addPackageResource(final Path resource); IncrementalBuildResults deletePackageResource(final Path resource); IncrementalBuildResults updatePackageResource(final Path resource); IncrementalBuildResults applyBatchResourceChanges(final Module module,
                                                             final Map<Path, Collection<ResourceChange>> changes); BuildResults buildExceptionResults(Exception e,
                                              GAV gav); BuildResults buildAndDeploy(final Module module); BuildResults buildAndDeploy(final Module module,
                                       final DeploymentMode mode); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers,
                                       final DeploymentMode mode); }
BuildHelper { public BuildResult build(final Module module) { try { cache.invalidateCache(module); Builder builder = cache.assertBuilder(module); final BuildResults results = builder.build(); BuildMessage infoMsg = new BuildMessage(); infoMsg.setLevel(Level.INFO); infoMsg.setText(buildResultMessage(module, results).toString()); results.addBuildMessage(0, infoMsg); return new BuildResult(builder, results); } catch (Exception e) { logger.error(e.getMessage(), e); return new BuildResult(null, buildExceptionResults(e, module.getPom().getGav())); } } BuildHelper(); @Inject  BuildHelper(final POMService pomService,
                       final ExtendedM2RepoService m2RepoService,
                       final KieModuleService moduleService,
                       final DeploymentVerifier deploymentVerifier,
                       final LRUBuilderCache cache,
                       final Instance<PostBuildHandler> handlers,
                       final Instance<User> identity); BuildResult build(final Module module); IncrementalBuildResults addPackageResource(final Path resource); IncrementalBuildResults deletePackageResource(final Path resource); IncrementalBuildResults updatePackageResource(final Path resource); IncrementalBuildResults applyBatchResourceChanges(final Module module,
                                                             final Map<Path, Collection<ResourceChange>> changes); BuildResults buildExceptionResults(Exception e,
                                              GAV gav); BuildResults buildAndDeploy(final Module module); BuildResults buildAndDeploy(final Module module,
                                       final DeploymentMode mode); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers,
                                       final DeploymentMode mode);  }