Examples of MavenProjectBasicStub


Examples of net.sourceforge.jivalo.plugin.maven.archetype.stub.MavenProjectBasicStub

       
        list.add( resource );
       
        setVariableValueToObject( mojo, "resources", list );
       
        MavenProjectBasicStub mavenProject =
            new MavenProjectBasicStub(this.testParentDir
                    , "net.sourceforge.jivalo"
                    , "test-project");
       
        setVariableValueToObject( mojo, "project", mavenProject );
        mojo.execute();
View Full Code Here

Examples of net.sourceforge.jivalo.plugin.maven.archetype.stub.MavenProjectBasicStub

        assertNotNull( mojo );
       
        String testBaseDir = getBasedir()+"/target/test-classes/unit/core/test-project";
       
        MavenProjectBasicStub mavenProject =
            new MavenProjectBasicStub(testBaseDir
                    , "net.sourceforge.jivalo"
                    , "test-project");
       
        setVariableValueToObject( mojo, "project", mavenProject );
       
View Full Code Here

Examples of net.sourceforge.jivalo.plugin.maven.archetype.stub.MavenProjectBasicStub

        assertNotNull( mojo );
       
        String testBaseDir = getBasedir()+"/target/test-classes/unit/core/test-project";
       
        MavenProjectBasicStub mavenProject =
            new MavenProjectBasicStub(testBaseDir
                    , "net.sourceforge.jivalo"
                    , "test-project");
       
        setVariableValueToObject( mojo, "project", mavenProject );
       
View Full Code Here

Examples of net.sourceforge.jivalo.plugin.maven.archetype.stub.MavenProjectBasicStub

        assertNotNull( mojo );
       
        String testBaseDir = getBasedir()+"/target/test-classes/unit/core/test-project";
       
        MavenProjectBasicStub mavenProject =
            new MavenProjectBasicStub(testBaseDir
                    , "net.sourceforge.jivalo"
                    , "test-project");
       
        setVariableValueToObject( mojo, "project", mavenProject );
       
View Full Code Here

Examples of net.sourceforge.jivalo.plugin.maven.stub.MavenProjectBasicStub

        assertNotNull( mojo );
       
        String testBaseDir = getBasedir()+"/target/test-classes/unit/core/test-project";
       
        MavenProjectBasicStub mavenProject =
            new MavenProjectBasicStub(testBaseDir
                    , "net.sourceforge.jivalo"
                    , "test-project");
       
        setVariableValueToObject( mojo, "project", mavenProject );
       
View Full Code Here

Examples of org.apache.maven.plugin.resources.stub.MavenProjectBasicStub

    public void testGet_escapeBackslashCharacterInPath()
        throws Exception
    {
        // setup data
        MavenProjectBasicStub project = new MavenProjectBasicStub( "escapeBackSlashCharacterInPath" );

        // set dummy value
        project.setDescription( "c:\\\\org\\apache\\test" );

        ReflectionProperties reflectProp = new ReflectionProperties( project, true );

        // project property to be verified
        String reflectPropValue = (String) reflectProp.get( "description" );
View Full Code Here

Examples of org.apache.maven.plugin.resources.stub.MavenProjectBasicStub

    public void testGet_dontEscapeBackslashCharacterInPath()
        throws Exception
    {
        // setup data
        MavenProjectBasicStub project = new MavenProjectBasicStub( "dontEscapeBackSlashCharacterInPath" );

        // set dummy value
        project.setDescription( "c:\\\\org\\apache\\test" );

        // project property to be verified
        ReflectionProperties reflectProp = new ReflectionProperties( project, false );

        // project property to be verified
View Full Code Here

Examples of org.apache.maven.plugin.war.stub.MavenProjectBasicStub

    public void testExplodedWar_WithResourceFiltering()
        throws Exception
    {
        // setup test data
        String testId = "ExplodedWar_WithResourceFiltering";
        MavenProjectBasicStub project = new MavenProjectBasicStub();
        File webAppDirectory = new File( getTestDirectory(), testId );
        File webAppSource = createWebAppSource( testId );
        File classesDir = createClassesDir( testId, false );
        File webAppResource = new File( getTestDirectory(), testId + "-test-data/resources" );
        File sampleResource = new File( webAppResource, "custom-setting.cfg" );
        File sampleResourceWDir = new File( webAppResource, "custom-config/custom-setting.cfg" );
        List filterList = new LinkedList();
        ResourceStub[] resources = new ResourceStub[]{new ResourceStub()};

        createFile( sampleResource );
        createFile( sampleResourceWDir );

        String ls = System.getProperty( "line.separator" );
        final String comment = "# this is comment created by author@somewhere@";
        // prepare web resources
        String content = comment + ls;
        content += "system_key_1=${user.dir}" + ls;
        content += "system_key_2=@user.dir@" + ls;
        content += "project_key_1=${is_this_simple}" + ls;
        content += "project_key_2=@is_this_simple@" + ls;
        content += "project_name_1=${project.name}" + ls;
        content += "project_name_2=@project.name@" + ls;
        content += "system_property_1=${system.property}" + ls;
        content += "system_property_2=@system.property@" + ls;
        FileUtils.fileWrite( sampleResourceWDir.getAbsolutePath(), content );
        FileUtils.fileWrite( sampleResource.getAbsolutePath(), content );

        System.setProperty( "system.property", "system-property-value" );

        // configure mojo
        project.addProperty( "is_this_simple", "i_think_so" );
        resources[0].setDirectory( webAppResource.getAbsolutePath() );
        resources[0].setFiltering( true );
        this.configureMojo( mojo, filterList, classesDir, webAppSource, webAppDirectory, project );
        setVariableValueToObject( mojo, "webResources", resources );
        mojo.execute();
View Full Code Here

Examples of org.apache.maven.plugin.war.stub.MavenProjectBasicStub

    public void testSimpleExplodedInplaceWar()
        throws Exception
    {
        // setup test data
        String testId = "SimpleExplodedInplaceWar";
        MavenProjectBasicStub project = new MavenProjectBasicStub();
        File webAppSource = createWebAppSource( testId );
        File classesDir = createClassesDir( testId, true );
        File webAppResource = new File( getTestDirectory(), "resources" );
        File sampleResource = new File( webAppResource, "pix/panis_na.jpg" );
        ResourceStub[] resources = new ResourceStub[]{new ResourceStub()};
View Full Code Here

Examples of org.apache.maven.plugin.war.stub.MavenProjectBasicStub

    public void testSimpleExplodedWar()
        throws Exception
    {
        // setup test data
        String testId = "SimpleExplodedWar";
        MavenProjectBasicStub project = new MavenProjectBasicStub();
        File webAppSource = createWebAppSource( testId );
        File classesDir = createClassesDir( testId, false );
        File webAppResource = new File( getTestDirectory(), testId + "-resources" );
        File webAppDirectory = new File( getTestDirectory(), testId );
        File sampleResource = new File( webAppResource, "pix/panis_na.jpg" );
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.