Trying to enable maven cache in travis. Add travis badge. Fix bug in

source file copier
This commit is contained in:
Alexey Andreev 2015-10-10 08:55:22 +03:00
parent acaec942a1
commit 010a5fe579
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
after_script:
- rm -rf $HOME/.m2/repository/org/teavm

View File

@ -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?
--------------

View File

@ -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));
}
}
}
}