Examples of DefaultLog


Examples of org.apache.maven.scm.log.DefaultLog

        assertEquals( 1, changedFiles.size() );
    }

    public void testConsumerRemovedFileUnstaged()
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        consumer.consumeLine( " D Capfile" );

        List<ScmFile> changedFiles = consumer.getChangedFiles();
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    public void testConsumerRemovedFileWithDirectoryAndNoFile()
        throws IOException
    {
        File dir = createTempDirectory();

        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), dir );

        consumer.consumeLine( "D  Capfile" );

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

        throws IOException
    {
        File dir = createTempDirectory();
        FileUtils.fileAppend( dir.getAbsolutePath() + File.separator + "Capfile", "data" );

        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), dir );

        consumer.consumeLine( "D  Capfile" );

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }

    public void testLog1Consumer()
        throws Exception
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/status/gitstatus1.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }

    public void testEmptyLogConsumer()
        throws Exception
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/status/gitstatus-empty.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog


    public void testLog2Consumer()
        throws Exception
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/status/gitstatus2.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

        boolean match = dateRegexp.match( "Date:   2007-11-24 01:13:10 +0100" );
        String datestring = dateRegexp.getParen( 1 );
        assertEquals( "2007-11-24 01:13:10 +0100", datestring );
        assertTrue( match );

        GitChangeLogConsumer consumer = new GitChangeLogConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/changelog/gitwhatchanged.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }

    public void testConsumer2()
        throws Exception
    {
        GitChangeLogConsumer consumer = new GitChangeLogConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/changelog/gitwhatchanged2.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    extends AbstractScmManager
{
    /** {@inheritDoc} */
    protected ScmLogger getScmLogger()
    {
        return new DefaultLog();
    }
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }
   
    private List<ScmFile> getChangedFiles( File gitlog, URI relativeRepoPath )
        throws IOException
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null, relativeRepoPath );

        BufferedReader r = new BufferedReader( new FileReader( gitlog ) );

        try
        {
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.