/** * {@inheritDoc} */ @Override public String getDataPath() { return _delegate.getDataPath(); }
private void handleDataPath() throws ResourceInitializationException { String dataPath = context.getDataPath(); String[] singleDataPaths = dataPath.split(File.pathSeparator); String[] clonedDescriptorPath = null; if (descriptorPaths != null) { clonedDescriptorPath = descriptorPaths.clone(); } if (!StringUtils.isBlank(dataPath)) { scriptPaths = ArrayUtils.addAll(scriptPaths, singleDataPaths); descriptorPaths = ArrayUtils.addAll(descriptorPaths, singleDataPaths); resourcePaths = ArrayUtils.addAll(resourcePaths, singleDataPaths); } if (modifyDataPath && clonedDescriptorPath != null) { if (!dataPath.endsWith(File.pathSeparator)) { dataPath += File.pathSeparator; } for (String path : clonedDescriptorPath) { dataPath += path + File.pathSeparator; } try { resourceManager.setDataPath(dataPath); } catch (MalformedURLException e) { throw new ResourceInitializationException(e); } } }
StringTokenizer tokenizer = new StringTokenizer(getContext().getDataPath(), PATH_SEPARATOR); ArrayList<File> datapathElements = new ArrayList<File>(); while (tokenizer.hasMoreTokens()) {
StringTokenizer tokenizer = new StringTokenizer(getContext().getDataPath(), PATH_SEPARATOR); ArrayList<File> datapathElements = new ArrayList<File>(); while (tokenizer.hasMoreTokens()) {
String dataPath = aContext.getDataPath(); System.out.println("descFile "+descFile.getAbsolutePath());
String dataPath = aContext.getDataPath(); System.out.println("descFile "+descFile.getAbsolutePath());