Examples of FileSet


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.FileSet

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFileset(FileSet newFileset, NotificationChain msgs) {
    FileSet oldFileset = fileset;
    fileset = newFileset;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AntTasksPackage.JAR__FILESET, oldFileset, newFileset);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.FileSet

        BPlusTreeParams bptParams = new BPlusTreeParams(order, recordFactory) ;

        int blockSizeNodes = blockSize ;
        int blockSizeRecords = blockSize ;

        FileSet destination = new FileSet(location, indexName) ;

        BlockMgr blkMgrNodes = BlockMgrFactory.create(destination, Names.bptExtTree, blockSizeNodes, readCacheSize, writeCacheSize) ;
        BlockMgr blkMgrRecords = BlockMgrFactory.create(destination, Names.bptExtRecords, blockSizeRecords, readCacheSize, writeCacheSize) ;
       
        int rowBlock = 1000 ;
View Full Code Here

Examples of com.mucommander.commons.file.util.FileSet

    /** True if classes haven't been loaded yet */
    private boolean loadingClasses =  true;


    public SelfUpdateJob(ProgressDialog progressDialog, MainFrame mainFrame, AbstractFile remoteJarFile) {
        this(progressDialog, mainFrame, new FileSet(remoteJarFile.getParent(), remoteJarFile), getDestJarFile());
    }
View Full Code Here

Examples of edu.stanford.genetics.treeview.FileSet

    // setup toplevel
    if (sFilePath != null) {
      final String frameType = args.getFrameType();
      final String exportType = args.getExportType();

      FileSet fileSet;
      if (sFilePath.startsWith("http://")) {
        fileSet = new FileSet(sFilePath,"");
      } else {
        File file = new File(sFilePath);
        fileSet = new FileSet(file.getName(), file.getParent()+File.separator);
      }
      fileSet.setStyle(frameType);

      try {
        ViewFrame tvFrame  = openNewNW(fileSet);
        tvFrame.setVisible(true);
        // tvFrame.loadNW(fileSet);
View Full Code Here

Examples of net.sf.eclipsecs.core.projectconfig.FileSet

    }

    public void updateCheckConfigWithIncludeExcludePatterns(
            final ProjectConfigurationWorkingCopy pcWorkingCopy, final ICheckConfiguration checkCfg)
            throws CheckstylePluginException, CoreException {
    final FileSet fs = new FileSet("java-sources-" + getExecutionId(), checkCfg);
        fs.setEnabled(true);
        // add fileset includes/excludes
        fs.setFileMatchPatterns(this.getIncludesExcludesFileMatchPatterns());
        // now add the config
        pcWorkingCopy.getFileSets().add(fs);
    }
View Full Code Here

Examples of net.sf.rej.files.FileSet

         
            // update class index
            List list = this.preferences.getClassPathList();
            for (int i = 0; i < list.size(); i++) {
                File file = (File) list.get(i);
                FileSet fs = getFileSet(file);
                this.classIndex.addElement(fs);
            }

            updateClassIndex();
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.maven.archetype.metadata.FileSet

    extends TestCase
{
    public void testResourceFiltering()
        throws Exception
    {
        FileSet fileSet = new FileSet();

        fileSet.addInclude( "**/*.java" );

        fileSet.setDirectory( "src/main/java" );
        fileSet.setEncoding( "UTF-8" );
        fileSet.setPackaged( true );
        fileSet.setFiltered( true );

        List<String> archetypeResources = new ArrayList<String>();

        archetypeResources.add( "pom.xml" );
        archetypeResources.add( "App.java" );
View Full Code Here

Examples of org.apache.maven.model.FileSet

    {
        final String[] emptyStrArray = {};

        for (Resource resource : resources)
        {
            FileSet fileSet = new FileSet();
            fileSet.setDirectory(resource.getDirectory());

            for (Object include : resource.getIncludes())
                fileSet.addInclude((String) include);

            for (Object exclude : resource.getExcludes())
                fileSet.addExclude((String) exclude);

            File resourceDirectory = new File(fileSet.getDirectory());
            if (!resourceDirectory.isAbsolute())
                resourceDirectory = new File(resourceDirectory.getPath());

            if (!resourceDirectory.exists())
            {
                log.info("Additional resource directory does not exist: " + resourceDirectory);
                continue;
            }

            DirectoryScanner scanner = new DirectoryScanner();

            scanner.setBasedir(resourceDirectory);
            if (fileSet.getIncludes() != null && !fileSet.getIncludes().isEmpty())
                //noinspection unchecked
                scanner.setIncludes((String[]) fileSet.getIncludes().toArray(emptyStrArray));
            else
                scanner.setIncludes(DEFAULT_INCLUDES);

            if (fileSet.getExcludes() != null && !fileSet.getExcludes().isEmpty())
                //noinspection unchecked
                scanner.setExcludes((String[]) fileSet.getExcludes().toArray(emptyStrArray));

            scanner.addDefaultExcludes();
            scanner.scan();

            List includedFiles = Arrays.asList(scanner.getIncludedFiles());
View Full Code Here

Examples of org.apache.maven.model.FileSet

    private String[] findArtifacts(String path) throws MojoExecutionException
    {
        DirectoryScanner scanner = new DirectoryScanner();

        FileSet fileSet = new FileSet();
        fileSet.setDirectory(path);

        if (policy.toLowerCase().equals("snapshot"))
        {
            prepareInclusionSet(fileSet);
            // fileSet.addInclude(SNAPSHOT_JARS);
            // fileSet.addInclude(SNAPSHOT_WARS);
            prepareExclusionSet(fileSet);
        }
        else
        {
            prepareInclusionSet(fileSet);
            prepareExclusionSet(fileSet);

            fileSet.addExclude(SNAPSHOT_JARS);
            fileSet.addExclude(SNAPSHOT_WARS);
        }

        // Include default artifact types:
        // fileSet.addInclude(INCLUDES_JARS);
        // fileSet.addInclude(INCLUDES_WARS);

        File resourceDirectory = new File(fileSet.getDirectory());
        String[] finalIncludes = new String[fileSet.getIncludes().size()];
        String[] finalExcludes = new String[fileSet.getExcludes().size()];

        finalIncludes = fileSet.getIncludes().toArray(finalIncludes);
        finalExcludes = fileSet.getExcludes().toArray(finalExcludes);

        System.out.println("Includes: " + Arrays.toString(finalIncludes));
        System.out.println("Excludes: " + Arrays.toString(finalExcludes));

        scanner.setBasedir(resourceDirectory);
        scanner.setIncludes(finalIncludes);

        if (fileSet.getExcludes() != null && !fileSet.getExcludes().isEmpty())
            scanner.setExcludes(finalExcludes);

        scanner.addDefaultExcludes();
        scanner.scan();
View Full Code Here

Examples of org.apache.maven.plugin.assembly.model.FileSet

    }

    public void testShouldReturnOriginalUnalteredDirectoryWhenLineEndingIsNull()
        throws AssemblyFormattingException, IOException
    {
        final FileSet fs = new FileSet();

        final FileSetFormatter formatter = new FileSetFormatter( configSource, logger );

        final File dir = fileManager.createTempDir();
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.