Archive

Archives pour 03/2009

JavaBlackBelt – Just pass my yellow belt.

Got to admit it was pretty easy. On my profile you can follow my progress

Give it a try : www.javablackbelt.com

Categories: Non classé Tags:

Finally found my scripting language of choice

In the past, I’ve played with perl, python or ruby and liked it but I wasn’t fully satisfied. As I was not so experienced, it seams to me that I would have saved time writting the script in java.

These days I playing with groovy and it seam almost perfect for me. Because groovy has a killer feature ! If you don’t know how to do something the groovy way, you can always do it the java way.

Categories: Non classé Tags:

Exclude generated classes from findbugs repport.

Having findbug running against generated code is a problem because you’ll have so many pointless warnings and errors that you might miss the real ones. The ones you can really do something about.

To exclude a package from the repports you’ll have to create a exclution filter file usualy name findbugs-exclude.xml

<FindBugsFilter>
  <Match>
    <Package name="~org.sinarf.myapp.mygeneratedpackage.*" />
  </Match>
</FindBugsFilter>

Filter documentation should contain anything you would need : Chapter 8. Filter Files.

Maven should be informed that it should use a filter exclude file.

<reporting>
  <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>findbugs-maven-plugin</artifactId>
      <configuration>
        <findbugsXmlOutput>true</findbugsXmlOutput>
        <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
        <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
      </configuration>
    </plugin>
  </plugins>
</reporting>
Categories: sinarf Tags: ,

Creating an executable jar with maven

To be able to create an executable jar containing all the dependencies you have to had

<build>
	[...]
	<plugins>
		[...]
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-assembly-plugin</artifactId>
			<configuration>
				<descriptorRefs>
					<descriptorRef>jar-with-dependencies</descriptorRef>
				</descriptorRefs>
				<archive>
					<manifest>
						<mainClass>org.sinarf.myapp.MainClass</mainClass>
					</manifest>
				</archive>
			</configuration>
		</plugin>
			[...]
	</plugins>
	[...]
</build>

the

mvn assembly:assembly

command will build an executable jar with all the dependancies define in your pom.
Documentation : Maven Assembly Plugin

Categories: sinarf Tags: ,

Affichage des valeurs des paramètres dans les log hibernate | Le blog des experts J2EE

Categories: sinarf Tags:

My Review of Quantum Jacket

SCOTTEVEST, Inc.

"

This may be our very best jacket ever! Everyone knows that layering is key to staying warm, and that is why we developed the SeV Quantum Jacket. It handles double duty, both as a waterproof, breathable, wind-stopping winter shell…


Nice but cold

sinarf Nantes, France 3/6/2009

 

3 5

Sizing: Feels true to size

Pros: Comfortable, Great Design

Cons: Not warm enough

Best Uses: Casual Wear

Describe Yourself: Casual Dresser

Comfort vs Style: Comfort Driven

It’s supose to be a ski jacket, but this jacket will only protect you against the wind, not the cold.

()

Categories: sinarf Tags:

Test unitaires et Socket

Travaillant sur un simulateur d’équipement réseau je simule des serveur et pour les tests lié au socket j’ai trouvé l’article suivant : Test unitaires et Socket – Jean-Yves, Bricolage et Bidouilles.

Merci Jean-Yves ;)

Categories: sinarf Tags:

SourceForge.net: Cygwin Portable

This days I’m working for a client who didn’t gave me admin right on my computer so I became to love so called portable Aplication. I use it for firefox because I need a useable browser (the client still using IE 6…).  I needed a useable command line and I just discover this : SourceForge.net: Cygwin Portable.

Categories: sinarf Tags: