Revision: 10077
Author: ncha...@google.com
Date: Tue Apr 26 09:52:21 2011
Log: Include all needed javax.validation classes for the api checker.
Review at http://gwt-code-reviews.appspot.com/1425802
Review by: rchan...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10077
Modified:
/trunk/tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java
=======================================
---
/trunk/tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java
Fri Apr 15 08:00:11 2011
+++
/trunk/tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java
Tue Apr 26 09:52:21 2011
@@ -175,7 +175,9 @@
}
/**
- * Class that specifies a set of {@link CompilationUnit} read from jar
files.
+ * Class that specifies a set of
+ * {@link com.google.gwt.dev.javac.CompilationUnit CompilationUnit} read
from
+ * jar files.
*/
private static class JarFileResources extends Resources {
private static final String MOCK_PREFIX = "/mock/";
@@ -286,7 +288,8 @@
}
/**
- * Abstract internal class that specifies a set of {@link
CompilationUnit}.
+ * Abstract internal class that specifies a set of
+ * {@link com.google.gwt.dev.javac.CompilationUnit CompilationUnit}.
*/
private abstract static class Resources {
protected final TreeLogger logger;
@@ -344,8 +347,9 @@
}
/**
- * Class that specifies a set of {@link CompilationUnit} read from the
- * file-system.
+ * Class that specifies a set of
+ * {@link com.google.gwt.dev.javac.CompilationUnit CompilationUnit} read
from
+ * the file-system.
*/
private static class SourceFileResources extends Resources {
private final ZipScanner excludeScanner;
@@ -966,10 +970,23 @@
throws UnableToCompleteException, NotFoundException, IOException {
Set<Resource> resources = new HashSet<Resource>();
if (extraSourceJars != null) {
- Resources extra =
- new JarFileResources(extraSourceJars, Collections.singleton(""),
new HashSet<String>(
- Arrays.asList("javax/validation/Validation.java",
- "javax/validation/constraints/Pattern.java")), logger);
+ Resources extra = new JarFileResources(
+ extraSourceJars,
+ Collections.singleton(""),
+ new HashSet<String>(Arrays.asList(
+ "javax/validation/Configuration.java",
+ "javax/validation/MessageInterpolator.java",
+ "javax/validation/Validation.java",
+ "javax/validation/ValidatorContext.java",
+ "javax/validation/ValidatorFactory.java",
+ "javax/validation/ValidationProviderResolver.java",
+ "javax/validation/bootstrap/GenericBootstrap.java",
+ "javax/validation/bootstrap/ProviderSpecificBootstrap.java",
+ "javax/validation/constraints/Pattern.java",
+ "javax/validation/spi/BootstrapState.java",
+ "javax/validation/spi/ConfigurationState.java",
+ "javax/validation/spi/ValidationProvider.java")),
+ logger);
Set<Resource> loaded = extra.getResources();
System.out.println("Found " + loaded.size() + " new resources");
resources.addAll(loaded);
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors