gpt4 book ai didi

ro.isdc.wro.model.WroModel.getGroups()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 15:41:05 26 4
gpt4 key购买 nike

本文整理了Java中ro.isdc.wro.model.WroModel.getGroups()方法的一些代码示例,展示了WroModel.getGroups()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WroModel.getGroups()方法的具体详情如下:
包路径:ro.isdc.wro.model.WroModel
类名称:WroModel
方法名:getGroups

WroModel.getGroups介绍

暂无

代码示例

代码示例来源:origin: alexo/wro4j

public WroModelInspector(final WroModel model) {
 Validate.notNull(model);
 for (final Group group : model.getGroups()) {
  map.put(group.getName(), group);
 }
}

代码示例来源:origin: ro.isdc.wro4j/wro4j-core

public WroModelInspector(final WroModel model) {
 Validate.notNull(model);
 for (final Group group : model.getGroups()) {
  map.put(group.getName(), group);
 }
}

代码示例来源:origin: alexo/wro4j

/**
 * {@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;
}

代码示例来源:origin: ro.isdc.wro4j/wro4j-core

/**
 * {@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;
}

代码示例来源:origin: alexo/wro4j

/**
 * @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;
}

代码示例来源:origin: ro.isdc.wro4j/wro4j-maven-plugin

/**
 * @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;
}

代码示例来源:origin: org.nuiton.js/nuiton-js-test

Assert.assertTrue("Can't find any valid wro groups !", model.getGroups().size() >= 1);
LOG.info("Successfully parsed {} groups", model.getGroups().size());
for (Group group : model.getGroups()) {
  String groupName = group.getName();
  LOG.info("Processing group {}", groupName);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com