public Iterable<String> getResources() { List<String> resources = new ArrayList<String>(); List<Resource> resourceList = testRig.getCopiedResources(); for (Resource resource : resourceList) { resources.add(new Resource("/resources/test/ResourcesTest.html").getRelativePath(resource)); } return resources; }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute hrefAttribute = new Attribute("href", ""); hrefAttribute.setValue(resource.getRelativePath(stylesheetResource)); link.addAttribute(hrefAttribute); }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute hrefAttribute = new Attribute("href", ""); hrefAttribute.setValue(resource.getRelativePath(stylesheetResource)); link.addAttribute(hrefAttribute); }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute srcAttribute = new Attribute("src", ""); srcAttribute.setValue(resource.getRelativePath(javaScriptResource)); script.addAttribute(srcAttribute); }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute srcAttribute = new Attribute("src", ""); srcAttribute.setValue(resource.getRelativePath(javaScriptResource)); script.addAttribute(srcAttribute); }
private Element createBreadcrumbElement(Resource documentResource, Resource indexPageResource, SpecificationConverter specificationConverter) throws IOException { String breadcrumbWording = getBreadcrumbWordingForResource(indexPageResource, specificationConverter); Element a = new Element("a"); Resource indexPageAsHtmlResource = new Resource(indexPageResource.getPath().replaceFirst("\\..*$", "\\.html")); a.addAttribute("href", documentResource.getRelativePath(indexPageAsHtmlResource)); a.appendText(breadcrumbWording); return a; }
private Element createBreadcrumbElement(Resource documentResource, Resource indexPageResource, SpecificationConverter specificationConverter) throws IOException { String breadcrumbWording = getBreadcrumbWordingForResource(indexPageResource, specificationConverter); Element a = new Element("a"); Resource indexPageAsHtmlResource = new Resource(indexPageResource.getPath().replaceFirst("\\..*$", "\\.html")); a.addAttribute("href", documentResource.getRelativePath(indexPageAsHtmlResource)); a.appendText(breadcrumbWording); return a; }
private String relativePath(String from, String to) { return resource(from).getRelativePath(resource(to)); }