Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created June 26, 2014 15:57
Show Gist options
  • Select an option

  • Save Riduidel/3a82cbba9ed54f651522 to your computer and use it in GitHub Desktop.

Select an option

Save Riduidel/3a82cbba9ed54f651522 to your computer and use it in GitHub Desktop.
Helper methods for attributs in Mojo-Executor
public static Attributes with(Attribute...attributes) {
return new Attributes(attributes);
}
public static Attribute attr(String key, String value) {
return new Attribute(key, value);
}
public static Attribute attr(String key, File value) {
return new Attribute(key, value.getAbsolutePath());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment