But the project is open-source and anyone can work on it if he finds interesting.
Well, farewell!
The library that allows fork/merge (among other things) in Java.
Once installed, it will add the option "Add/Remove Light Wolf Nature" to Eclipse's context menu of Java projects. When used, this option tells whether the nature was added or removed. You can check the tab "Builders" in the project properties, and notice that it adds the "Light Wolf Builder" just after the "Java Builder". This means that classes with the @FlowMethod annotation will be automatically enhanced during builds, either full or incremental.http://lightwolf.sourceforge.net/updates/
import org.lightwolf.Flow;
import org.lightwolf.FlowMethod;
public class Test {
@FlowMethod
public static void main(String[] args) throws Throwable {
System.out.println("Before fork.");
int b = Flow.fork(4);
System.out.printf("We are in the branch %d.\n", b);
Flow.merge();
System.out.println("After merge.");
}
}
If your environment was correctly configured, it should print something like this: