mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Trying to enable maven cache in travis. Add travis badge. Fix bug in
source file copier
This commit is contained in:
parent
acaec942a1
commit
010a5fe579
|
@ -1,3 +1,8 @@
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk8
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.m2
|
||||||
|
after_script:
|
||||||
|
- rm -rf $HOME/.m2/repository/org/teavm
|
|
@ -1,6 +1,8 @@
|
||||||
TeaVM
|
TeaVM
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/konsoletyper/teavm.svg?branch=selenium)](https://travis-ci.org/konsoletyper/teavm)
|
||||||
|
|
||||||
What is TeaVM?
|
What is TeaVM?
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,12 @@ public class MavenSourceFileProviderLookup {
|
||||||
ArtifactResolutionResult result = repositorySystem.resolve(request);
|
ArtifactResolutionResult result = repositorySystem.resolve(request);
|
||||||
for (Artifact resolvedArtifact : result.getArtifacts()) {
|
for (Artifact resolvedArtifact : result.getArtifacts()) {
|
||||||
if (resolvedArtifact.getFile() != null) {
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user