Technologies
I will mostly write about following
Java
, J2EE
, GWT(Google Web Toolkit)
, HTML
, Javascript
, Linux
, MacOS
, Queue
, Docker
, Cloud hosting
, Auto Scaling
, Web
, Ad Serving
etc.
Advantage of using Maven over ant.
Posted on June 28, 2012
| 3 minutes
| 539 words
| Pandurang Patil
What is Maven?
It is a tool that can be used for build process and managing Java project. The way ant is used for build process of Java projects. But it does it very smartly and you can set-up your Java project very fast.
Advantage of using Maven over Ant.
With ant you have to do everything on your own, you have to write lot of code/configuration in build.xml. Where as maven is simple, easy and with minimal code you can start.
[Read More]Start with maven
Posted on June 28, 2012
| 4 minutes
| 676 words
| Pandurang Patil
Start with Maven
To start with Maven lets create a sample application which will result into artifact packaged into .jar. Maven being build system for Java application, you need to have following software’s installed on your machine and set few environment variables.
JDK may be latest version at least jdk 1.6. Maven installation download latest version. Set Maven’s bin directory into path variable so that it is accessible from anywhere. Set JAVA_HOME environment variable pointing to required JDK installation It is very easy to create simple jar project with the help of Maven archetype (in short it is a Java project templating tool, which has different templates to create different kinds of projects.
[Read More]GWT use I18 Message resource in uiBinder
Posted on May 20, 2012
| 1 minutes
| 92 words
| Pandurang Patil
To use I18 Message resource in uiBinder you need to follow the same mechanism as that of ClientBundle
In your corresponding java class add @uiFactory method which will return the object of required Message interface
e.g.
package com.test.module.client; public interface Messages extends com.google.gwt.i18n.client.Messages { @DefaultMessage("Home") @Key("home") @DefaultMessage("Home") String home(); } public class MyUiBinder extends Composite{ ..... ..... @UiFactory public static Messages getResources() { return GWT.create(Messages.class); } } And you can use the same inside corresponding MyUiBinder.
[Read More]Get New line after using float:left or right
Posted on May 20, 2012
| 1 minutes
| 45 words
| Pandurang Patil
To get new line after using float property on previous element. I found straight forward solution to use either clear: both;
on next element.
e.g.
1: <div style=“float: left;">
2: ....
3: </div>
1: <div style=“clear: both;">
2: ....
3: </div>
for more details refer
Create Maven GWT project and setup eclipse project
Posted on August 23, 2011
| 3 minutes
| 471 words
| Pandurang Patil
Using Maven archetype you can very easily create the gwt project in Maven. Follow below steps to create the same.
Assumption: You have latest version of maven installed (Tried the below steps with 3.0.3 version)
mvn archetype:generate It will ask for archetype to use specify 258 (gwt-maven-plugin). Then it will ask for other details like any other archetype asks for, enter the required details. And it will create the given GWT project with the details you have entered with a sample application.
[Read More]Setup eclipse project from a Maven project
Posted on August 11, 2011
| 2 minutes
| 398 words
| Pandurang Patil
Note: Below steps will work for 2.x and later version’s of Maven project.
Assumption: You know eclipse.
Eclipse version details: I would recommend to use latest version of Eclipse (Helios was the latest version while writing this blog and steps are tried with the same).
If you know how to install eclipse plugin then you can skip install steps and install following two plugins http://m2eclipse.sonatype.org/sites/m2e http://m2eclipse.sonatype.org/sites/m2e-extras Install maven eclipse plug-in for more details refer.
[Read More]