public String call() throws IOException { File home = new File(mvnHome); if (MavenProcessFactory.debug) listener.getLogger().println("Using mvnHome: "+ mvnHome); File bootDir = new File(home, "boot"); File[] classworlds = bootDir.listFiles(CLASSWORLDS_FILTER); if(classworlds==null || classworlds.length==0) { listener.error(Messages.MavenProcessFactory_ClassWorldsNotFound(home)); throw new RunnerAbortedException(); } return classworlds[0].getAbsolutePath(); } }
public String call() throws IOException { File home = new File(mvnHome); File bootDir = new File(home, "core/boot"); File[] classworlds = bootDir.listFiles(CLASSWORLDS_FILTER); if(classworlds==null || classworlds.length==0) { // Maven 2.0.6 puts it to a different place bootDir = new File(home, "boot"); classworlds = bootDir.listFiles(CLASSWORLDS_FILTER); if(classworlds==null || classworlds.length==0) { listener.error(Messages.MavenProcessFactory_ClassWorldsNotFound(home)); throw new RunnerAbortedException(); } } return classworlds[0].getAbsolutePath(); } }
public String call() throws IOException { File home = new File(mvnHome); File bootDir = new File(home, "core/boot"); File[] classworlds = bootDir.listFiles(CLASSWORLDS_FILTER); if(classworlds==null || classworlds.length==0) { // Maven 2.0.6 puts it to a different place bootDir = new File(home, "boot"); classworlds = bootDir.listFiles(CLASSWORLDS_FILTER); if(classworlds==null || classworlds.length==0) { listener.error(Messages.MavenProcessFactory_ClassWorldsNotFound(home)); throw new RunnerAbortedException(); } } return classworlds[0].getAbsolutePath(); } }