Package org.apache.hivemind.ant

Examples of org.apache.hivemind.ant.ManifestClassPath


            _project.getProperty("output"));
    }

    public void testDirectoryInClasspath() throws Exception
    {
        ManifestClassPath mcp = create();

        mcp.setProperty("output");

        File dir = new File("src").getAbsoluteFile();

        mcp.setDirectory(dir);

        Path path = mcp.createClasspath();

        Path.PathElement pe = path.createPathElement();

        pe.setLocation(dir);

        pe = path.createPathElement();

        pe.setLocation(new File("src/META-INF/hivemodule.xml"));

        mcp.execute();

        assertEquals("META-INF/hivemodule.xml", _project.getProperty("output"));
    }
View Full Code Here


        assertEquals("META-INF/hivemodule.xml", _project.getProperty("output"));
    }

    public void testEmpty() throws Exception
    {
        ManifestClassPath mcp = create();

        mcp.setProperty("zap");

        assertEquals("zap", mcp.getProperty());

        mcp.createClasspath();

        mcp.execute();

        assertEquals("", _project.getProperty("zap"));

    }
View Full Code Here

    }

    public void testNoProperty() throws Exception
    {
        ManifestClassPath mcp = create();

        mcp.createClasspath();

        try
        {
            mcp.execute();

            unreachable();
        }
        catch (BuildException ex)
        {
View Full Code Here

    }

    public void testNoClasspath() throws Exception
    {
        ManifestClassPath mcp = create();

        mcp.setProperty("bar");

        try
        {
            mcp.execute();

            unreachable();
        }
        catch (BuildException ex)
        {
View Full Code Here

TOP

Related Classes of org.apache.hivemind.ant.ManifestClassPath

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.