Skip to content

Commit

Permalink
Merge pull request #78 from runtimeverification/addressDwight
Browse files Browse the repository at this point in the history
Removing the need for regex or commons-lang
  • Loading branch information
owolabileg committed Sep 17, 2014
2 parents 31f1b1e + ce6ca91 commit 13a408e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/javamop/GenerateAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;

/**
* Handles generating a complete Java agent after .mop files have been processed into .rvm files
Expand Down Expand Up @@ -212,10 +211,8 @@ public static void generate(final File outputDir, final String aspectname,
* @return Filename of the jar
*/
private static String getJarName(String pathToJar) {
String name;
String[] parts = pathToJar.split(Pattern.quote(File.separator));
name = parts[parts.length - 1];
return name;
File file = new File(pathToJar);
return file.getName();
}

/**
Expand Down

0 comments on commit 13a408e

Please sign in to comment.