Examples of extract()


Examples of org.broadleafcommerce.common.extensibility.context.merge.ImportProcessor.extract()

            j++;
        }

        ImportProcessor importProcessor = new ImportProcessor(this);
        try {
            resources = importProcessor.extract(resources);
        } catch (MergeException e) {
            throw new FatalBeanException("Unable to merge source and patch locations", e);
        }

        this.configResources = new MergeApplicationContextXmlConfigResource().getConfigResources(resources, null);
View Full Code Here

Examples of org.cafesip.jiplet.utils.FileUtils.extract()

        File f = new File(testDataDirectory, "my-context.spr");
        exampleAppSpr = f.getAbsolutePath();

        f = new File(testDataDirectory, "deploy.jar");
        FileUtils ant = new FileUtils();
        assertEquals("deploy.jar could not be extracted", true, ant.extract(f
                .getAbsolutePath(), (new File(testDataDirectory, "tmp"))
                .getAbsolutePath()));

        f = new File(testDataDirectory, "tmp/deploy");
        exampleAppDirectory = f.getAbsolutePath();
View Full Code Here

Examples of org.codehaus.plexus.archiver.UnArchiver.extract()

   
            unArchiver.setSourceFile( file );
   
            unArchiver.setDestDirectory( location );
   
            unArchiver.extract();
        }
        catch ( IOException e )
        {
            throw new MojoExecutionException( "Error unpacking file: " + file + "to: " + location, e );
        }
View Full Code Here

Examples of org.codehaus.plexus.archiver.bzip2.BZip2UnArchiver.extract()

            zipUnArchiver.setDestFile( tempTarFile );

            zipUnArchiver.setSourceFile( this.getSourceFile() );

            zipUnArchiver.extract();

            this.setSourceFile( tempTarFile );

            super.execute();
        }
View Full Code Here

Examples of org.codehaus.plexus.archiver.gzip.GZipUnArchiver.extract()

           
            zipUnArchiver.setDestFile( tempTarFile );
           
            zipUnArchiver.setSourceFile( this.getSourceFile() );
                      
            zipUnArchiver.extract();
           
            this.setSourceFile( tempTarFile );
           
            super.execute();
        }
View Full Code Here

Examples of org.codehaus.plexus.archiver.tar.TarGZipUnArchiver.extract()

                //Set the compressed source file
                targzUnArchiver.setSourceFile(targzFile);
                               
                //extract the .tar.gz file on destination Path
                targzUnArchiver.extract("", destinationFile);
            }
            else
            {
                throw new FileNotFoundException("File "+file + " missing.");
            }
View Full Code Here

Examples of org.codehaus.plexus.archiver.zip.ZipUnArchiver.extract()

        try
        {
            UnArchiver ua = new ZipUnArchiver( pluginJar );

            ua.extract( resourcesPath, outputDirectory );
        }
        catch ( ArchiverException e )
        {
            throw new MojoExecutionException( "Error extracting resources from your Ant-based plugin.", e );
        }
View Full Code Here

Examples of org.dbpedia.spotlight.spot.Spotter.extract()

            i++;
            if (i == 100)
                break;

            spotter.extract(
                    new Text(
                            new Scanner(textFile).useDelimiter("\\A").next()
                    )
            );
View Full Code Here

Examples of org.eclipse.birt.report.engine.api.IDataExtractionTask.extract()

         
          //Set the HTTP response
        response.setContentType("text/csv");
        response.setHeader("Content-disposition", "inline; filename=reportcsv.csv");
        iDataExtract.selectResultSet( dispName );
        iDataExtract.extract(extractionOptions);
        logger.debug("Extraction successfull "+dispName);
        break;
      }
      }
     
View Full Code Here

Examples of org.fnlp.app.keyword.AbstractExtractor.extract()

   
    StopWords sw= new StopWords("../models/stopwords");
    CWSTagger seg = new CWSTagger("../models/seg.m");
    AbstractExtractor key = new WordExtract(seg,sw);
   
    System.out.println(key.extract("甬温线特别重大铁路交通事故车辆经过近24小时的清理工作,26日深夜已经全部移出事故现场,之前埋下的D301次动车车头被挖出运走", 20, true));
   
    //处理已经分好词的句子
    sw=null;
    key = new WordExtract(seg,sw);
    System.out.println(key.extract("甬温线 特别 重大 铁路交通事故车辆经过近24小时的清理工作,26日深夜已经全部移出事故现场,之前埋下的D301次动车车头被挖出运走", 20));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.