diff --git a/.travis.yml b/.travis.yml index c4f11b7cf..c892b40dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,8 @@ language: java jdk: - - oraclejdk8 \ No newline at end of file + - oraclejdk8 +cache: + directories: + - $HOME/.m2 +after_script: + - rm -rf $HOME/.m2/repository/org/teavm \ No newline at end of file diff --git a/README.md b/README.md index 38ff1e579..c17b93c53 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ TeaVM ===== +[![Build Status](https://travis-ci.org/konsoletyper/teavm.svg?branch=selenium)](https://travis-ci.org/konsoletyper/teavm) + What is TeaVM? -------------- diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java b/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java index 9d6567645..3b6242f79 100644 --- a/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java +++ b/tools/maven/plugin/src/main/java/org/teavm/maven/MavenSourceFileProviderLookup.java @@ -85,7 +85,12 @@ public class MavenSourceFileProviderLookup { ArtifactResolutionResult result = repositorySystem.resolve(request); for (Artifact resolvedArtifact : result.getArtifacts()) { if (resolvedArtifact.getFile() != null) { - providers.add(new JarSourceFileProvider(resolvedArtifact.getFile())); + File file = resolvedArtifact.getFile(); + if (!file.isDirectory()) { + providers.add(new JarSourceFileProvider(file)); + } else { + providers.add(new DirectorySourceFileProvider(file)); + } } } }