I use normally the Content Assist in M2Eclipse Plugin to enter the maven commands, but if you use your own xml editor, a new Maven Quick Reference Card directly from Apache makes the life much easier. it contains the most basic items.
http://maven.apache.org/guides/MavenQuickReferenceCard.pdf
hope you enjoy using it.
Thursday, 24 February 2011
Wednesday, 16 February 2011
Convert JUnit3 Tests modules to JUnit4
I needed to convert many test files to JUnit4, after a while, I considered that is a really painful task to do it manually. So I wrote a little program to automate the process.
I tested this application on a huge number of files wrote by various Persons and having various formats, therefore I hope that I works on every possible JUnit module.
Please send me a short comment if you found a case, that I didn't included in it.
you can call the application by entering this command on Command Line:
this will printout the converted file to Console, if you wanted to do an Inplace Conversion, add "-i" to commands.
You can access the application on Github
I tested this application on a huge number of files wrote by various Persons and having various formats, therefore I hope that I works on every possible JUnit module.
Please send me a short comment if you found a case, that I didn't included in it.
you can call the application by entering this command on Command Line:
java -jar JUnit4Converter.jar -f <your JUnit3 Java file> |
this will printout the converted file to Console, if you wanted to do an Inplace Conversion, add "-i" to commands.
java -jar JUnit4Converter.jar -i -f <your JUnit3 Java file> |
You can access the application on Github
Monday, 14 February 2011
Read multiple files from Resource JAR or Disk
following to my further Post about loading one file from a JAR file or Disk, here is a method which loads directly multiple files. it will decide base of given URL, if it must load those files from Disk or a Resource JAR file.
In my sample, I wanted to be more detailed and load just XML files.
In my sample, I wanted to be more detailed and load just XML files.
|
labels:
Java
Subscribe to:
Posts (Atom)