Oktober 2011 Archive

In most of my projects I'm using maven as my prefered build tool. The tool is pretty mature and if you're build process doesn't change that often it ist ok. If you need a more flexible build process, ant or gradle may be the tools of your choice.
Maven ist out the box great when doing "pure" java projects. But personally I like groovy cause some things are really nice and done with much less coding and I compiles to java byte code. So even when my customer says we just want java code and could write some groovy code.
 I n praxis I'm using groovy to write some Test Cases. The multiline string feature is a great advantage if you want to test some parsing or text generating code. When including the Groovy Eclipse plugin this works in my IDE but not in out maven build process, so I need some more steps:
  1. I've got to put my groovy code in a directory src/test/groovy (Convention over configuration) or src/main/groovy
  2. I've got to add the gmaven plugin in my build process
  3. I need to provide a groovy runtime for my testcases
Here ist an example of my pom.xml:
      <plugin>
        <groupId>org.codehaus.gmaven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <version>1.3</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
...
    <dependency>
      <groupId>org.codehaus.gmaven.runtime</groupId>
      <artifactId>gmaven-runtime-1.7</artifactId>
      <version>1.3</version>
      <exclusions>
        <exclusion>
          <groupId>org.sonatype.gossip</groupId>
          <artifactId>gossip</artifactId>
        </exclusion>
      </exclusions>
      <scope>test</scope>
    </dependency>
I started this blog as "german block about java, technology and a lot of other stuff" cause I wanted to share my experiences when writing code. I managed to make a least one post / month. That's not much but more than nothing.

After changing the technology this summer I although redefine the content now. Most of the research I do on the web I do in english, the whole Java API is available in english, framework documentation is done in english (OK today the is often also a chinese version)  so people have almost no chance to find my blog when my posting are available in german. 

Cause I just don't have the time for translation, starting today some post will be english and some german.
Enhanced by Zemanta
I just found this quite helpful article with examples for integration the jquery datatable pluin with a JEE backend.http://datatables.net/ 
For a modern web application "rich" tables are a central component when displaying enterprise business data. There are several jquery components for handling tables, but jquery datatables seems to be the most mature one.
Cause most of my data is created using ajax, I need some server side code, although creating ajax data is no rocket science the examples shown above seem to be quite helpful when checking the syntax of your response.
Man merkt mal wieder, dass es doch nur Hobby ist und ein einfach die Zeit fehlt sich um alles zu kümmern.
In den letzten Tagen gab es Probleme mit der Kommentar und der Suchfunktion. Die sollte jetzt hoffentlich wieder funktionieren.

Ich habe auch einige nette inhalte suche aber gerade noch eine Funktion wie ich Quellcode sauber formatieren kann, dann gibt es auch wieder mehr zum Thema programieren.

Über dieses Archiv

Diese Seite enthält alle Einträge von Java Blog von neu nach alt.

September 2011 ist das vorherige Archiv.

Aktuelle Einträge finden Sie auf der Startseite, alle Einträge in den Archiven.