Package org.expath.pkg.repo.tui

Examples of org.expath.pkg.repo.tui.BatchUserInteraction


            throw new PackageException("Invalid descriptor found in " + xar.getAbsolutePath());
        }

        // installing the xar into the expath repo
        LOG.info("Installing package " + xar.getAbsolutePath());
        final UserInteractionStrategy interact = new BatchUserInteraction();
        final org.expath.pkg.repo.Package pkg = repo.getParentRepo().installPackage(xar, true, interact);
        final ExistPkgInfo info = (ExistPkgInfo) pkg.getInfo("exist");
        if (info != null && !info.getJars().isEmpty())
            {ClasspathHelper.updateClasspath(broker.getBrokerPool(), pkg);}
        broker.getBrokerPool().getXQueryPool().clear();
View Full Code Here


        final File homeDir = broker.getConfiguration().getExistHome();
        final File autodeployDir = new File(homeDir, AUTODEPLOY_DIRECTORY);
        if (!autodeployDir.canRead() && autodeployDir.isDirectory())
            {return;}
        final ExistRepository repo = broker.getBrokerPool().getExpathRepo();
        final UserInteractionStrategy interact = new BatchUserInteraction();
        final File[] xars = autodeployDir.listFiles(new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.getName().endsWith(".xar");
            }
View Full Code Here

  public Sequence eval(Sequence[] args, Sequence contextSequence)
    throws XPathException {
        Sequence removed = BooleanValue.TRUE;
        boolean force = false;
        UserInteractionStrategy interact = new BatchUserInteraction();
        String pkg = args[0].getStringValue();

        try {
            if ( pkg == null ) {
                System.err.println("Package name required");
View Full Code Here

  public Sequence eval(Sequence[] args, Sequence contextSequence)
    throws XPathException {
        Sequence removed = BooleanValue.FALSE;
        boolean force = true;
        UserInteractionStrategy interact = new BatchUserInteraction();
        String pkgOrPath = args[0].getStringValue();
       
        ExistRepository repo = getContext().getRepository();
        Repository parent_repo = repo.getParentRepo();
View Full Code Here

            final String name = args[i];
            try {
                final File xar = findApp(home, name);
                if (xar != null) {
                    System.out.println("Installing app package " + xar.getName());
                    final UserInteractionStrategy interact = new BatchUserInteraction();
                    final Package pkg = repository.getParentRepo().installPackage(xar, true, interact);
                    final String pkgName = pkg.getName();
                    uris.add(pkgName);
                } else {
                    System.err.println("App package not found: " + name + ". Skipping it.");
View Full Code Here

TOP

Related Classes of org.expath.pkg.repo.tui.BatchUserInteraction

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.