public boolean isUpToDate(final URL url, final Collection<InputResource> inputs, final Map<Object, Object> context) throws MalformedURLException { return isUpToDate(InputResourcesHelper.getTimestamp(url), inputs, context); }
protected long getTimestamp(final InputResource resource, final Map<Object, Object> context) throws MalformedURLException { long timestamp = resource.getTimestamp(); if (timestamp == -1) { final URL url = findResource(resource, context); if (url != null) timestamp = InputResourcesHelper.getTimestamp(url); else timestamp = Long.MAX_VALUE; resource.setTimestamp(timestamp); } return timestamp; }
/** * Returns the absolute path corresponding to the given fully qualified name. * * @param fullyQualifiedName a fully qualified name * @param extension the file extension to add at the end of the returned path. * May be <code>null</code> * @return the absolute path corresponding to the given fully qualified name. */ public static String fullyQualifiedNameToPath( final String fullyQualifiedName, final String extension) { return fullyQualifiedNameToPath(fullyQualifiedName, null, extension); }
public String[] listFc() { return listFcHelper(INSTANCE_SOURCE_GENERATOR_ITF_NAME, OutputFileLocator.ITF_NAME, CompilerWrapper.ITF_NAME, MPPWrapper.ITF_NAME, InputResourceLocator.ITF_NAME); }
public URL findResource(final InputResource resource, final Map<Object, Object> context) { if (resource.getLocation() != null) return resource.getLocation(); final GenericResourceLocator genericResourceLocator = genericResourceLocators .get(resource.getKind()); if (genericResourceLocator != null) { final URL location = genericResourceLocator.findResource(resource .getName(), context); if (location != null) resource.setLocation(location); return location; } return null; }
/** * Returns the directory name that correspond to the package name of the given * fully qualified name. * * @param fullyQualifiedName a fully qualified name * @return the directory name that correspond to the package name of the given * fully qualified name. */ public static String fullyQualifiedNameToDirName( final String fullyQualifiedName) { final String packageName = getPackageName(toValidName(fullyQualifiedName)); if (packageName == null) return "/"; return packageNameToDirName(packageName); }
public String[] listFc() { return listFcHelper(DEFINITION_SOURCE_GENERATOR_ITF_NAME, OutputFileLocator.ITF_NAME, CompilerWrapper.ITF_NAME, MPPWrapper.ITF_NAME, ImplementationLocator.ITF_NAME); }
public String[] listFc() { return listFcHelper(CLIENT_COMPILER_ITF_NAME, OutputFileLocator.ITF_NAME, ImplementationLocator.ITF_NAME, CompilerWrapper.ITF_NAME); }
@Override public String[] listFc() { return listFcHelper(IDLLoader.ITF_NAME); }
@Override public String[] listFc() { return listFcHelper(OutputFileLocator.ITF_NAME); }
public String[] listFc() { return listFcHelper(DEFINITION_COMPILER_ITF_NAME, INSTANCE_COMPILER_ITF_NAME); }
public String[] listFc() { return listFcHelper(XMLNodeFactory.ITF_NAME); }
public String[] listFc() { return listFcHelper(CLIENT_EVALUATOR_ITF_NAME, AnnotationFactory.ITF_NAME); }
public String[] listFc() { return listFcHelper(RECURSIVE_VALUE_EVALUATOR_ITF_NAME); }
public String[] listFc() { return listFcHelper(NodeFactory.ITF_NAME); }
public String[] listFc() { return listFcHelper(ValueEvaluator.ITF_NAME, AnnotationLocator.ITF_NAME); }
public String[] listFc() { return listFcHelper(CLIENT_VISITOR); }
public String[] listFc() { return listFcHelper(IDLLoader.ITF_NAME, IDL_COMPILER_ITF_NAME); }
public String[] listFc() { return listFcHelper(CLIENT_COMPILER_ITF_NAME, DEFINITION_COMPILER_ITF_NAME); }
public String[] listFc() { return listFcHelper(LOADER_ITF_NAME); }