Package hudson.remoting

Examples of hudson.remoting.LocalChannel


        }
    }

    @Bug(11073)
    public void testIsUnix() {
        FilePath winPath = new FilePath(new LocalChannel(null),
                " c:\\app\\hudson\\workspace\\3.8-jelly-db\\jdk/jdk1.6.0_21/label/sqlserver/profile/sqlserver\\acceptance-tests\\distribution.zip");
        assertFalse(winPath.isUnix());

        FilePath base = new FilePath(new LocalChannel(null),
                "c:\\app\\hudson\\workspace\\3.8-jelly-db");
        FilePath middle = new FilePath(base, "jdk/jdk1.6.0_21/label/sqlserver/profile/sqlserver");
        FilePath full = new FilePath(middle, "acceptance-tests\\distribution.zip");
        assertFalse(full.isUnix());
       
       
        FilePath unixPath = new FilePath(new LocalChannel(null),
                "/home/test");
        assertTrue(unixPath.isUnix());
    }
View Full Code Here


        }
    }

    @Bug(13649)
    public void testMultiSegmentRelativePaths() throws Exception {
        FilePath winPath = new FilePath(new LocalChannel(null), "c:\\app\\jenkins\\workspace");
        FilePath nixPath = new FilePath(new LocalChannel(null), "/opt/jenkins/workspace");

        assertEquals("c:\\app\\jenkins\\workspace\\foo\\bar\\manchu", new FilePath(winPath, "foo/bar/manchu").getRemote());
        assertEquals("c:\\app\\jenkins\\workspace\\foo\\bar\\manchu", new FilePath(winPath, "foo\\bar/manchu").getRemote());
        assertEquals("c:\\app\\jenkins\\workspace\\foo\\bar\\manchu", new FilePath(winPath, "foo\\bar\\manchu").getRemote());
        assertEquals("/opt/jenkins/workspace/foo/bar/manchu", new FilePath(nixPath, "foo\\bar\\manchu").getRemote());
View Full Code Here

        // unsupported platform, take a chance
        return newLocalChannel();
    }

    private static LocalChannel newLocalChannel() {
        return new LocalChannel(Computer.threadPoolForRemoting);
    }
View Full Code Here

        // unsupported platform, take a chance
        return newLocalChannel();
    }

    private static LocalChannel newLocalChannel() {
        return new LocalChannel(Computer.threadPoolForRemoting);
    }
View Full Code Here

TOP

Related Classes of hudson.remoting.LocalChannel

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.