Permalink
Browse files

[#1646] fix in order to make dependencies to contributed modules work…

… again

fixed whitespace
  • Loading branch information...
1 parent f40912d commit 71b79cfdd2660357f87a8ac382917b6aee678bac @fpahl fpahl committed with Notalifeform Feb 16, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 framework/src/play/deps/DependenciesManager.java
@@ -1,8 +1,8 @@
package play.deps;
import java.io.File;
-import java.io.IOException;
import java.io.FileFilter;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -179,13 +179,16 @@ public boolean problems() {
for (ArtifactDownloadReport artifact : adr) {
if (artifact.getLocalFile() != null) {
if (isPlayModule(artifact) || !isFrameworkLocal(artifact)) {
- modules.add(artifact.getLocalFile().getName());
+ String mName = artifact.getLocalFile().getName();
+ if (mName.endsWith(".jar") || mName.endsWith(".zip")) {
+ mName = mName.substring(0, mName.length() - 4);
+ }
+ modules.add(mName);
}
}
}
}
}
-
return modules;
}

0 comments on commit 71b79cf

Please sign in to comment.