This file contains hidden or 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
" This must be first, because it changes other options as side effect | |
set nocompatible | |
" coloration syntaxique | |
syn on | |
" met les buffer en arriere plan plutot que de les fermer | |
set hidden | |
"Détection du type de fichier pour l'indentation |
This file contains hidden or 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
public class DemarreurDeSuite extends DoFixture { | |
private static final Logger logger = Logger.getLogger(DemarreurDeSuite.class); | |
public boolean demarre() throws Exception { | |
logger.info("demarrage de tous les mock serveurs"); | |
demarreStreamer(); | |
demarrePublicite(); | |
demarrePaiement(); | |
demarreOptionsClient(); |
This file contains hidden or 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 org.agitude.fileutils | |
import java.io.File | |
import org.apache.commons.io.FileUtils | |
// Utility object for test purpose only | |
object DummyProject { | |
private val TMP_DIR = new File("tmp") | |
val WEB_PACKAGE = Package("org.agitude.web", "module1") |
This file contains hidden or 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
object Rationnel { | |
implicit def conversionIntVersRationnel(i :Int) :Rationnel = Rationnel(i) | |
def apply(a :Int) :Rationnel = new Rationnel(a,1) | |
def pgcd(a :Int, b :Int) :Int = { | |
if (b == 0) a | |
else pgcd(b, a%b) | |
} | |
} | |
case class Rationnel(n :Int, d :Int) { |
This file contains hidden or 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
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'sonar'. | |
[INFO] Ignoring available plugin update: 2.0-beta-2 as it requires Maven version 3.0 | |
[INFO] Ignoring available plugin update: 2.0-beta-1 as it requires Maven version 3.0 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building sampleMavenProject | |
[INFO] task-segment: [clean, install] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] [clean:clean] | |
[INFO] Deleting /home/jpcaruana/projets/buildr-sonar/mavenSampleProject/target |
This file contains hidden or 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
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'archetype'. | |
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0/maven-archetype-plugin-2.0.pom | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/2.0/maven-archetype-2.0.pom | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0/maven-archetype-plugin-2.0.jar | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Maven Default Project | |
[INFO] task-segment: [archetype:generate] (aggregator-style) | |
[INFO] ------------------------------------------------------------------------ |
This file contains hidden or 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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
interactive = auto | |
[user] | |
name = Jean-Philippe CARUANA | |
email = [email protected] | |
[alias] | |
last = cat-file commit HEAD |
This file contains hidden or 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
#!/bin/bash | |
projectName=$1 | |
if [[ $projectName == '' ]]; then | |
echo "usage: $0 nameOfTheProjectToCreate" | |
exit 1 | |
fi | |
mkdir $projectName | |
cd $projectName |
This file contains hidden or 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
Date maDateNonTestable = new Date(); // :-( à ne plus faire | |
Date maDateTestable = BarreVerteTime.now(); // :-) la nouvelle façon |
This file contains hidden or 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
public class MonTest { | |
@Rule public BarreVerteTimeRule timeRule = | |
new BarreVerteTimeRule("2010-01-10 10:00:00"); | |
@Test public void premierTest { /*...*/ } | |
@Test public void deuxiemeTest { /*...*/ } | |
} |