Package org.drools.scm

Examples of org.drools.scm.ScmAction


    }

    public void applyAction(Object context) throws SVNException {
//        ISVNEditor editor = ( ISVNEditor ) context;
        for ( Iterator it = this.actions.iterator(); it.hasNext(); ) {
            ScmAction action = (ScmAction) it.next();
//            action.applyAction( editor );
        }
    }
View Full Code Here


                             ScmActionFactory factory) throws Exception {
        for ( Iterator it = list.iterator(); it.hasNext(); ) {
            ScmLogEntry entry = (ScmLogEntry) it.next();
            for ( Iterator it2 = entry.getAction().iterator(); it.hasNext(); ) {
                ScmLogEntryItem item = (ScmLogEntryItem) it2.next();
                ScmAction action;
                switch ( item.getActionType() ) {
                    case 'A' : {
                        Add add = (Add) item;
                        if ( add.getPathType() == 'D' ) {
                            addDirectory( "",
View Full Code Here

    }

    public void applyAction(Object context) throws SVNException {
//        ISVNEditor editor = ( ISVNEditor ) context;
        for ( Iterator it = this.actions.iterator(); it.hasNext(); ) {
            ScmAction action = (ScmAction) it.next();
//            action.applyAction( editor );
        }
    }
View Full Code Here

                             ScmActionFactory factory) throws Exception {
        for ( Iterator it = list.iterator(); it.hasNext(); ) {
            ScmLogEntry entry = (ScmLogEntry) it.next();
            for ( Iterator it2 = entry.getAction().iterator(); it.hasNext(); ) {
                ScmLogEntryItem item = (ScmLogEntryItem) it2.next();
                ScmAction action;
                switch ( item.getActionType() ) {
                    case 'A' : {
                        Add add = (Add) item;
                        if ( add.getPathType() == 'D' ) {
                            addDirectory( "",
View Full Code Here

        CompositeScmAction actions = new CompositeScmAction();

        // Correctly add a new Directory at root
        actions = new CompositeScmAction();
        ScmAction addDirectory = new AddDirectory( "",
                                                   "folder1" );
        actions.addScmAction( addDirectory );

        svn.execute( actions,
                     "test message" );
View Full Code Here

                            "just for testing" );

        JcrActionFactory fact = new JcrActionFactory( repo );

        byte[] data = "this is content".getBytes();
        ScmAction action = fact.addFile( "testAddFiles/package",
                                         "someFile.drl",
                                         data );

        fact.execute( action,
                      "some message" );
View Full Code Here

        asset.updateContent( "lala" );
        asset.checkin( "yeah" );
        long oldVersion = asset.getVersionNumber();

        JcrActionFactory fact = new JcrActionFactory( repo );
        ScmAction action = fact.updateFile( RulesRepository.DEFAULT_PACKAGE,
                                            "testUpdateFilesSVN.drl",
                                            "lala".getBytes(),
                                            "lala2".getBytes() );

        fact.execute( action,
View Full Code Here

                                                     "drools" );

        CompositeScmAction actions = new CompositeScmAction();

        try {
            ScmAction addDirectory = new AddDirectory( "folder1",
                                                    "folder1_1" );
            actions.addScmAction( addDirectory );
            svn.execute( actions,
                         "test message" );
            fail( "This should fail as 'folder1' has not yet been created" );
View Full Code Here

        CompositeScmAction actions = new CompositeScmAction();

        // Correctly add a new directory at root
        actions = new CompositeScmAction();
        ScmAction addDirectory = new AddDirectory( "",
                                                "folder1" );
        actions.addScmAction( addDirectory );

        svn.execute( actions,
                     "test message" );
View Full Code Here

        CompositeScmAction actions = new CompositeScmAction();

        // Correctly add a new Directory at root
        actions = new CompositeScmAction();
        ScmAction addDirectory = new AddDirectory( "",
                                                "folder1" );
        actions.addScmAction( addDirectory );

        svn.execute( actions,
                     "test message" );
View Full Code Here

TOP

Related Classes of org.drools.scm.ScmAction

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.