Examples of relativePath()


Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

                                        if (componentClass == null) {
                                            componentClass = DefaultComponentClass;
                                        }
                                        if (AWComponent.ClassObject.isAssignableFrom(componentClass)) {
                                            componentDefinition = createComponentDefinitionForNameAndClass(componentName, componentClass);
                                            componentDefinition.setTemplateName(resource.relativePath());
                                            _componentDefinitionHashtable.put(componentName.intern(), componentDefinition);
                                        }
                                        else {
                                            throw new AWGenericException(getClass().getName() + ": invalid class specified for Classless component: " + componentClass.getName());
                                        }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

        Map alreadyParsedTemplates = MapUtil.map();
        List allResources = resourceManager().allResources();

        for (int index = 0, length = allResources.size(); index < length; index++) {
            AWResource resource = (AWResource)allResources.get(index);
            String relativePath = resource.relativePath();
            if (relativePath == null) {
                logWarning("**** Skipping malformed resource: " + resource);
            }
            else if (!relativePath.equals(alreadyParsedTemplates.get(relativePath))) {
                alreadyParsedTemplates.put(relativePath, relativePath);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

        Map alreadyParsedTemplates = MapUtil.map();
        List allResources = resourceManager().allResources();

        for (int index = 0, length = allResources.size(); index < length; index++) {
            AWResource resource = (AWResource)allResources.get(index);
            String relativePath = resource.relativePath();
            if (relativePath != null) {
                if (!relativePath.equals(alreadyParsedTemplates.get(relativePath))) {
                    alreadyParsedTemplates.put(relativePath, relativePath);
                    if (relativePath.endsWith("AXEtd.awl")) {
                        continue;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

    }

    public static String resourceRelative (String baseResourcePath, String relativePath, AWRequestContext requestContext)
    {
        AWResource resource = lookupRelativeResource(baseResourcePath, relativePath, requestContext);
        return resource != null ? resource.relativePath().replace('\\', '/') : null;
    }

    public static String moduleForResource (String resourcePath, UIMeta.UIContext context)
    {
        List<UIMeta.ModuleProperties> modules = MetaNavTabBar.getState(context.requestContext().session()).moduleInfo().modules;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

                        List<String> l = line;
                        Currency currency = new Currency(l.get(0), l.get(3), l.get(4), Integer.parseInt(l.get(6)));
                        _Currencies.put(currency.getCode(), currency);
                    }
                });
                reader.readForSpecifiedEncoding(in, resource.relativePath(), "UTF-8");
            }
            catch (IOException e) {
                throw new AWGenericException(e);
            }
            finally {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

    {
        AWResourceManager resourceManager = AWConcreteServerApplication.sharedInstance().resourceManager();
        AWResource resource = resourceManager.packageResourceNamed(filename);
        Assert.that(!required || resource != null, "Rule file not found in resource search path: %s", filename);
        if (resource != null) {
            beginRuleSet(rank, resource.relativePath());
            _loadRuleFile(resource);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.relativePath()

        if (!_loadedNames.contains(name)) {
            _loadedNames.add(name);
            AWResourceManager resourceManager = AWConcreteServerApplication.sharedInstance().resourceManager();
            AWResource resource = resourceManager.resourceNamed(name);
            if (resource != null) {
                beginRuleSet(resource.relativePath());
                _loadRuleFile(resource);
            }
        }
    }
View Full Code Here

Examples of org.sonar.api.batch.fs.InputDir.relativePath()

        InputDir inputDir = (InputDir) inputPath;
        String key = ((DefaultInputDir) inputDir).key();
        json
          .beginObject()
          .prop("key", key)
          .prop("path", inputDir.relativePath())
          .prop("moduleKey", StringUtils.substringBeforeLast(key, ":"))
          .endObject();
      }

    }
View Full Code Here

Examples of org.sonar.api.batch.fs.InputFile.relativePath()

        InputFile inputFile = (InputFile) inputPath;
        String key = ((DefaultInputFile) inputFile).key();
        json
          .beginObject()
          .prop("key", key)
          .prop("path", inputFile.relativePath())
          .prop("moduleKey", StringUtils.substringBeforeLast(key, ":"))
          .prop("status", inputFile.status().name())
          .endObject();
      } else {
        InputDir inputDir = (InputDir) inputPath;
View Full Code Here

Examples of org.sonar.api.batch.fs.InputFile.relativePath()

      for (Measure<?> measure : measureCache.byModule(def.getKey())) {
        jsonWriter.beginObject()
          .prop("metricKey", measure.metric().key());
        InputFile inputFile = measure.inputFile();
        if (inputFile != null) {
          jsonWriter.prop("filePath", inputFile.relativePath());
        }
        jsonWriter.prop("value", String.valueOf(measure.value()))
          .endObject();
      }
      jsonWriter.endArray()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.