Package org.jayasoft.woj.tools.dl

Examples of org.jayasoft.woj.tools.dl.Organisation


        _revCombo = new JComboBox(_revisionsModel);
       
        _orgCombo.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                _modulesModel.removeAllElements();
                Organisation org = (Organisation)_orgCombo.getSelectedItem();
                if (org != null) {
                    Collection<Module> modules = _dlexplorer.getModules(org);
                    for (Module module : modules) {
                        _modulesModel.addElement(module);
                    }
View Full Code Here


    private void process(DLExplorer explorer) throws ServiceException {
        ModuleDescriptor[] mds = _mms.getAllModules();
        System.out.println("found "+mds.length+" modules on woj server");
        for (ModuleDescriptor md : mds) {
            File revDir = explorer.getRevisionDir(new Revision(new Module(new Organisation(md.getOrganisation()), md.getModule()), md.getRevision()));
            if (!revDir.exists()) {
                System.out.println("found revision to remove: "+md);
                _mms.removeModule(md.getId());
               
                System.out.println("revision removed: "+md);
View Full Code Here

            for (File mod : modules) {
                File[] zips = mod.listFiles();
                for (File zip : zips) {
                    if (zip.getName().endsWith(".zip")) {
                        String rev = zip.getName().substring(0, zip.getName().length() - ".zip".length());
                        File revDir = explorer.getRevisionDir(new Revision(new Module(new Organisation(org.getName()), mod.getName()), rev));
                        if (!revDir.exists()) {
                            System.out.println("removing module: "+zip.getAbsolutePath());
                            zip.delete();
                            System.out.println("removed module: "+zip.getAbsolutePath());
                        }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.tools.dl.Organisation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.