Skip to content

Instantly share code, notes, and snippets.

   public WOActionResults onEntrepriseSupprimer() {
       EOEditingContext edForGroupe = editingContext();
       if (getRepartStructure() == null) {
           return null;
       }
       try {
           if (getRepartStructure() != null) {
               edForGroupe.deleteObject(getRepartStructure());
               edForGroupe.saveChanges();
@jlafourc
jlafourc / gist:3176607
Created July 25, 2012 14:58
Modification du pom généré par gradle
pom.whenConfigured { pom ->
// dep is a native Maven dependency object (With properties artifactId, groupId, ...)
pom.dependencies.each { dep ->
dep.type = 'jar'
println dep
}
}
pom.withXml { provider ->
org.w3c.dom.Document document = provider.asElement().getOwnerDocument()
@jlafourc
jlafourc / migration_forge.sh
Last active August 29, 2015 13:56
Migration Forge
#!/bin/bash
declare -A repository_list;
repository_list[[email protected]:agrhum.git][email protected]:referentiel/agrhum.git
depart=`pwd`;
echo "L'origine des dépots suivants seront modifiés";
echo "---------------------------------------------";
for d in `find . -name .git -type d -exec readlink -f {}/.. \;`
@jlafourc
jlafourc / consume-bom.gradle
Last active August 16, 2019 08:09
Gradle scripts to generate a BOM and then consume that BOM
plugins {
id "io.spring.dependency-management" version "1.0.0.RC2"
}
project.group = com.company
project.version = 1.0.0
project.ext.name = company-project
dependencyManagement {
imports {