private ArrayList<URL> getInstalledJars() throws MalformedURLException, IOException { ArrayList<URL> al = new ArrayList<URL>(); ArrayList<URL> al1 = null; for (String dir : this.getRepositoryDirectories()) { al1 = JModule.getInstalledFileInDir(dir, JModule.EJBJAR_EXTENSION); for (URL url : al1) { al.add(url); } } return al; }
public static ArrayList<String> getMailFactoryPropsInDir() throws Exception { return getMailFactoryPropsInDir(null); }
public static ArrayList<String> getDatasourcePropsInDir() throws Exception { ArrayList<String> al = getFilesInDir(JProp.getJonasBase() + File.separator + CONF_DIR, PROPS_EXTENSION);
public static ArrayList<String> getMailFactoryPropsInDir(final String type) throws Exception { ArrayList<String> al = getFilesInDir(JProp.getJonasBase() + File.separator + CONF_DIR, PROPS_EXTENSION);
private ArrayList<URL> getInstalledRars() throws MalformedURLException, IOException { ArrayList<URL> al = new ArrayList<URL>(); String extension = JModule.RAR_EXTENSION; ArrayList<URL> al1 = null; for (String dir : this.getRepositoryDirectories()) { al1 = JModule.getInstalledFileInDir(dir, extension); for (URL url : al1) { al.add(url); } } return al; }
private ArrayList<URL> getInstalledWars() throws MalformedURLException, IOException { ArrayList<URL> al = new ArrayList<URL>(); String extension = JModule.WAR_EXTENSION; ArrayList<URL> al1 = null; for (String dir : this.getRepositoryDirectories()) { al1 = JModule.getInstalledFileInDir(dir, extension); for (URL url : al1) { al.add(url); } } return al; }
private ArrayList<URL> getInstalledEars() throws MalformedURLException, IOException { ArrayList<URL> al = new ArrayList<URL>(); String extension = JModule.EAR_EXTENSION; ArrayList<URL> al1 = null; for (String dir : this.getRepositoryDirectories()) { al1 = JModule.getInstalledFileInDir(dir, extension); for (URL url : al1) { al.add(url); } } return al; }
/** * Get the xml files in the known repositories. They are supposed to contain deployment plans. * @return the urls of the xml files within the known repositories * @throws MalformedURLException If the path cannot be parsed as a URL * @throws IOException problem with the construction of the canonical pathname */ private ArrayList<URL> getInstalledXmls() throws MalformedURLException, IOException { ArrayList<URL> al = new ArrayList<URL>(); ArrayList<URL> al1 = null; for (String dir : this.getRepositoryDirectories()) { al1 = JModule.getInstalledFileInDir(dir, DEPL_EXTENSION); for (URL url : al1) { al.add(url); } } return al; }