Package org.jayasoft.woj.tools.dl

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


        });
       
        _modCombo.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                _revisionsModel.removeAllElements();
                Module mod = (Module)_modCombo.getSelectedItem();
                if (mod != null) {
                    Collection<Revision> revisions = _dlexplorer.getRevisions(mod);
                    for (Revision revision : revisions) {
                        _revisionsModel.addElement(revision);
                    }
View Full Code Here


   
    DLExplorer dlExplorer = _console.getDlexplorer();
 
    RevisionChooser rChooser = _console.getDlPanel().getRevisionChooser();
    Revision revision = rChooser.getSelectedRevision();
    Module module = revision.getModule();
 
    List<Revision> revs = RevisionSelector.selectVersions(dlExplorer, module);
    if (revs.size() != 0) {
      List<RevisionDescriptor> rds = new ArrayList<RevisionDescriptor>();
      for (Revision rev : revs) {
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.Module

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.