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

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


import junit.framework.TestCase;

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


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

    }
   
   
    private FileSystemResolver createSlowResolver(IvySettings settings, final int sleep) {
        FileSystemResolver resolver = new FileSystemResolver();
        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

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.