This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package st.extreme; | |
import org.jgroups.JChannel; | |
public class JGroups { | |
public static void main(String[] args) throws Exception { | |
try (JChannel channel = new JChannel()) { | |
channel.connect("testChannel"); | |
System.out.println("Connected to a default test channel"); | |
channel.disconnect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def splitoutputofgitstatusz(self, line): | |
""" | |
:param line: the output line from the command 'git status -z' | |
:return: a list of all repository files with status changes | |
""" | |
repositoryfiles = [] | |
entries = line.split(sep='\x00') # ascii 0 is the delimiter | |
for entry in entries: | |
entry = entry.strip() | |
if len(entry) > 0: |