Skip to content

Instantly share code, notes, and snippets.

View tuner's full-sized avatar

Kari Lavikka tuner

View GitHub Profile
@tuner
tuner / build-common
Created January 14, 2011 12:20
Check that we have a clean working tree...
<macrodef name="git-status">
<attribute name="dir" default=""/>
<sequential>
<echo>Check that we have a clean working tree...</echo>
<exec executable="sh" dir="@{dir}" resultproperty="gitStatusResult">
<arg value="-c"/>
<arg value="git status --porcelain | grep -E '.[^\?] '"/>
</exec>
<fail>
<condition>
@Retention(RetentionPolicy.RUNTIME)
public @interface CommandDescriptor {
Class [] supportedChannels();
boolean moderatorRequired();
String [] commands();
}
//////////////////////////////////////////
public class StandardCommands {