Package org.apache.ivy.plugins.repository.file

Examples of org.apache.ivy.plugins.repository.file.FileRepository


        String path = artifact.getExtraAttribute(DefaultIvyDependencyPublisher.FILE_PATH_EXTRA_ATTRIBUTE);
        if (path == null) {           
            return null;
        }
        File file = new File(path);
        return new ResolvedResource(new FileResource(new FileRepository(), file), artifact.getId().getRevision());
    }
View Full Code Here


    }

    private FileSystemResolver createSlowResolver(IvySettings settings, final int sleep) {
        FileSystemResolver resolver = new FileSystemResolver();
        resolver.setRepositoryCacheManager(newCacheManager(settings));
        resolver.setRepository(new FileRepository() {
            private RepositoryCopyProgressListener progress = new RepositoryCopyProgressListener(
                    this) {
                public void progress(CopyProgressEvent evt) {
                    super.progress(evt);
                    sleepSilently(sleep); // makes the file copy longer to test concurrency issues
View Full Code Here

     * Location where files should end up at the end of the transaction
     */
    private File transactionDestDir;

    public FileSystemResolver() {
        setRepository(new FileRepository());
    }
View Full Code Here

import org.apache.ivy.plugins.repository.file.FileRepository;

public class ResolverHelperTest extends TestCase {

    public void testListTokenValuesForIvy1238() {
        FileRepository rep = new FileRepository(new File(".").getAbsoluteFile());
        String[] revisions = ResolverHelper.listTokenValues(rep,
            "test/repositories/IVY-1238/ivy-org/modA/v[revision]/ivy.xml", "revision");

        assertNotNull(revisions);
        assertEquals(2, revisions.length);
View Full Code Here

                        f = new File(new URI(url.toExternalForm()));
                    } catch (URISyntaxException e) {
                        // unexpected, try to get the best of it
                        f = new File(url.getPath());
                    }
                    resource = new FileResource(new FileRepository(), f);
                } else {
                    resource = new URLResource(url);
                }
                ret = new ResolvedResource(resource, artifact.getModuleRevisionId().getRevision());
            }
View Full Code Here

        assertEquals(repo, repo2);
    }

    public void testFileRepo() throws Exception {
        RepositoryManifestIterable it = new RepositoryManifestIterable(new FileRepository(
                bundlerepo.getAbsoluteFile()));
        BundleRepoDescriptor repo = new BundleRepoDescriptor(bundlerepo.toURI(),
                ExecutionEnvironmentProfileProvider.getInstance());
        repo.populate(it.iterator());
View Full Code Here

     * Location where files should end up at the end of the transaction
     */
    private File transactionDestDir;
   
    public FileSystemResolver() {
        setRepository(new FileRepository());
    }
View Full Code Here

/**
*/
public class FileSystemResolver extends RepositoryResolver {
    public FileSystemResolver() {
        setRepository(new FileRepository());
    }
View Full Code Here

/**
* @author Xavier Hanin
*/
public class FileSystemResolver extends RepositoryResolver {
    public FileSystemResolver() {
        setRepository(new FileRepository());
    }
View Full Code Here

     * Location where files should end up at the end of the transaction
     */
    private File transactionDestDir;
   
    public FileSystemResolver() {
        setRepository(new FileRepository());
    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.plugins.repository.file.FileRepository

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.