public WroModelInspector(final WroModel model) { Validate.notNull(model); for (final Group group : model.getGroups()) { map.put(group.getName(), group); } }
public WroModelInspector(final WroModel model) { Validate.notNull(model); for (final Group group : model.getGroups()) { map.put(group.getName(), group); } }
/** * {@inheritDoc} */ public synchronized WroModel transform(final WroModel input) { final WroModel model = input; for (final Group group : model.getGroups()) { final List<Resource> resources = group.getResources(); for (final Resource resource : resources) { processResource(group, resource); } } LOG.debug("Transformed model: {}", model); return model; }
/** * {@inheritDoc} */ public synchronized WroModel transform(final WroModel input) { final WroModel model = input; for (final Group group : model.getGroups()) { final List<Resource> resources = group.getResources(); for (final Resource resource : resources) { processResource(group, resource); } } LOG.debug("Transformed model: {}", model); return model; }
/** * @return a list of groups changed by incremental builds. */ private List<String> getIncrementalGroupNames() throws Exception { final List<String> changedGroupNames = new ArrayList<String>(); for (final Group group : getModel().getGroups()) { // skip processing non target groups if (isTargetGroup(group)) { for (final Resource resource : group.getResources()) { getLog().debug("checking delta for resource: " + resource); if (getResourceChangeHandler().isResourceChanged(resource)) { getLog().debug("detected change for resource: " + resource + " and group: " + group.getName()); changedGroupNames.add(group.getName()); // no need to check rest of resources from this group break; } } } } return changedGroupNames; }
/** * @return a list of groups changed by incremental builds. */ private List<String> getIncrementalGroupNames() throws Exception { final List<String> changedGroupNames = new ArrayList<String>(); for (final Group group : getModel().getGroups()) { // skip processing non target groups if (isTargetGroup(group)) { for (final Resource resource : group.getResources()) { getLog().debug("checking delta for resource: " + resource); if (getResourceChangeHandler().isResourceChanged(resource)) { getLog().debug("detected change for resource: " + resource + " and group: " + group.getName()); changedGroupNames.add(group.getName()); // no need to check rest of resources from this group break; } } } } return changedGroupNames; }