Permalink
Browse files

Revert module fix

  • Loading branch information...
1 parent 737bbe6 commit a5a28bef5e182a059f2dbe1718d7cde06e33cd78 @stuartwdouglas stuartwdouglas committed Apr 5, 2013
@@ -146,7 +146,7 @@ private static void createTestModule(File testModuleRoot) throws IOException {
writer.write(index);
jar.addAsManifestResource(new ByteArrayAsset(out.toByteArray()), "jandex.idx");
-
+
FileOutputStream jarFile = new FileOutputStream(new File(file, "globalTest.jar"));
try {
jar.as(ZipExporter.class).exportTo(jarFile);
@@ -181,7 +181,7 @@ private static File getModulePath() {
}
modulePath = jbossHome + File.separatorChar + "modules";
} else {
- modulePath = modulePath.split(File.pathSeparator)[1];
+ modulePath = modulePath.split(File.pathSeparator)[0];
}
File moduleDir = new File(modulePath);
if (!moduleDir.exists()) {
@@ -224,7 +224,7 @@ private File getModulePath() {
}
modulePath = jbossHome + File.separatorChar + "modules";
}else{
- modulePath = modulePath.split(File.pathSeparator)[1];
+ modulePath = modulePath.split(File.pathSeparator)[0];
}
File moduleDir = new File(modulePath);
if (!moduleDir.exists()) {
@@ -123,7 +123,7 @@ private File getModulePath() {
}
modulePath = jbossHome + File.separatorChar + "modules";
} else {
- modulePath = modulePath.split(File.pathSeparator)[1];
+ modulePath = modulePath.split(File.pathSeparator)[0];
}
File moduleDir = new File(modulePath);
if (!moduleDir.exists()) {
@@ -210,7 +210,7 @@ private static File getModulesHome() {
}
modulePath = jbossHome + File.separatorChar + "modules";
} else {
- modulePath = modulePath.split(File.pathSeparator)[1];
+ modulePath = modulePath.split(File.pathSeparator)[0];
}
File moduleDir = new File(modulePath);
if (!moduleDir.exists()) {
@@ -135,7 +135,7 @@ private static File getModulePath() {
}
modulePath = jbossHome + File.separatorChar + "modules";
} else {
- modulePath = modulePath.split(File.pathSeparator)[1];
+ modulePath = modulePath.split(File.pathSeparator)[0];
}
File moduleDir = new File(modulePath);
if (!moduleDir.exists()) {

0 comments on commit a5a28be

Please sign in to comment.