Eclipse Members Order
This is not strictly a "Best Practice" topic, but since it is very important to keep code uniform on the project with multiple developers I require that every one Formats and Orders Java classes this way:
Eclipse Members Order
This is not strictly a "Best Practice" topic, but since it is very important to keep code uniform on the project with multiple developers I require that everyone Formats and Orders Java classes this way:
MyEclipse Memory
-Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=512m -Dfile.encoding=UTF-8
MyEclipse Memory
-Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=512m -Dfile.encoding=UTF-8
Daily Trigger
Trigger trigger = TriggerUtils.makeDailyTrigger(22, 02); trigger.setName("newsRoomTrigger");
Daily Trigger
Trigger trigger = TriggerUtils.makeDailyTrigger(22, 02); trigger.setName("newsRoomTrigger");
Micronesia Sailing
http://www.youtube.com/watch?v=-EVV5BGXFho
Check out this video on YouTube:
http://www.youtube.com/watch?v=-EVV5BGXFho
Check out this video on YouTube:
http://www.youtube.com/watch?v=-EVV5BGXFho
GWT: running tests filtered by Maven 2
GWT: running tests filtered by Maven 2
GWT: building war with Maven 2 and Ant and deploying to Tomcat - single click
<project name="csd" default="prep_deploy" basedir=".">
<property name="WAR_EXPLODED" value=".\\target\\csd" />
<echo>
ATTENTION! CREATE FOLLOWING FILE IF MISSING:
.\\src\\main\\resources\\${user.name}.properties
echo>
<property file=".\\src\\main\\resources\\${user.name}.properties" />
<target name="clean">
<delete dir="com.ucc.csd.CSD" />
<delete dir="www" />
<delete dir="target" />
<delete dir="bin" />
<delete dir="target-eclipse" />
<delete dir="tomcat" />
<echo>Refresh your Eclipse project (F5)echo>
target>
<target name="war" depends="clean">
<echo>Maven Executable: ${MAVEN_EXEC}echo>
<exec taskname="mvn war" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="clean compile war:war -Dtarget=${TARGET}" />
exec>
<delete file=".\\target\\csd.war" />
target>
<target name="hibernate_hbm_to_ddl" depends="clean">
<echo>Maven Executable: ${MAVEN_EXEC}echo>
<exec taskname="mvn hbm2ddl" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="clean compile hibernate3:hbm2ddl -Dtarget=${TARGET}" />
exec>
<delete file=".\\target\\csd.war" />
target>
<target name="prep_test" depends="war">
<copy file=".\\target\\classes\\applicationContext.xml" tofile=".\\src\\main\\resources\\applicationContext_test.xml" />
target>
<target name="test" depends="prep_test">
<echo>Maven Executable: ${MAVEN_EXEC}echo>
<exec taskname="mvn test" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="test -Dtarget=${TARGET}" />
exec>
target>
<target name="gwt_shell" depends="war">
<echo>GWT: starting hosted (dev)echo>
<java taskname="GWT hosted" classpathref="class_path" classname="com.google.gwt.dev.GWTShell" fork="true" maxmemory="256m">
<jvmarg line="-verbose ${JVM_ARG_START}" />
<arg line="-out www com.ucc.csd.CSD/CSD.html" />
java>
target>
<target name="gwt_compile_to_js" depends="war">
<java taskname="GWT compile" classpathref="class_path" classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory="512m">
<jvmarg line="-verbose ${JVM_ARG_START}" />
<arg line="-logLevel WARN -out www com.ucc.csd.CSD" />
java>
target>
<target name="prep_deploy" depends="gwt_compile_to_js">
<copy todir="${WAR_EXPLODED}">
<fileset dir="www/com.ucc.csd.CSD" />
copy>
<copy file=".\\src\\com\\ucc\\csd\\CSD.gwt.xml" todir="${WAR_EXPLODED}\\WEB-INF\\classes\\com\\ucc\\csd" />
target>
<target name="deploy_locally" depends="prep_deploy">
<echo>DID YOU STOP TOMCAT?echo>
<delete dir="${DEPLOY_DIR}" />
<copy todir="${DEPLOY_DIR}">
<fileset dir="${WAR_EXPLODED}" />
copy>
<echo>START YOUR TOMCATecho>
target>
<path id="class_path">
<pathelement path=".\\src" />
<pathelement path=".\\src\\main\\java" />
<pathelement path=".\\target\\classes\\" />
<fileset dir="${GWT_HOME}">
<include name="*.jar" />
fileset>
<fileset dir="${WAR_EXPLODED}\\WEB-INF\\lib">
<include name="*.jar" />
fileset>
path>
project>
GWT: building war with Maven 2 and Ant and deploying to Tomcat - single click
<project name="csd" default="prep_deploy" basedir=".">
<property name="WAR_EXPLODED" value=".\\target\\csd" />
<echo>
ATTENTION! CREATE FOLLOWING FILE IF MISSING:
.\\src\\main\\resources\\${user.name}.properties
</echo>
<property file=".\\src\\main\\resources\\${user.name}.properties" />
<target name="clean">
<delete dir="com.ucc.csd.CSD" />
<delete dir="www" />
<delete dir="target" />
<delete dir="bin" />
<delete dir="target-eclipse" />
<delete dir="tomcat" />
<echo>Refresh your Eclipse project (F5)</echo>
</target>
<target name="war" depends="clean">
<echo>Maven Executable: ${MAVEN_EXEC}</echo>
<exec taskname="mvn war" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="clean compile war:war -Dtarget=${TARGET}" />
</exec>
<delete file=".\\target\\csd.war" />
</target>
<target name="hibernate_hbm_to_ddl" depends="clean">
<echo>Maven Executable: ${MAVEN_EXEC}</echo>
<exec taskname="mvn hbm2ddl" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="clean compile hibernate3:hbm2ddl -Dtarget=${TARGET}" />
</exec>
<delete file=".\\target\\csd.war" />
</target>
<target name="prep_test" depends="war">
<copy file=".\\target\\classes\\applicationContext.xml" tofile=".\\src\\main\\resources\\applicationContext_test.xml" />
</target>
<target name="test" depends="prep_test">
<echo>Maven Executable: ${MAVEN_EXEC}</echo>
<exec taskname="mvn test" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="test -Dtarget=${TARGET}" />
</exec>
</target>
<target name="gwt_shell" depends="war">
<echo>GWT: starting hosted (dev)</echo>
<java taskname="GWT hosted" classpathref="class_path" classname="com.google.gwt.dev.GWTShell" fork="true" maxmemory="256m">
<jvmarg line="-verbose ${JVM_ARG_START}" />
<arg line="-out www com.ucc.csd.CSD/CSD.html" />
</java>
</target>
<target name="gwt_compile_to_js" depends="war">
<java taskname="GWT compile" classpathref="class_path" classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory="512m">
<jvmarg line="-verbose ${JVM_ARG_START}" />
<arg line="-logLevel WARN -out www com.ucc.csd.CSD" />
</java>
</target>
<target name="prep_deploy" depends="gwt_compile_to_js">
<copy todir="${WAR_EXPLODED}">
<fileset dir="www/com.ucc.csd.CSD" />
</copy>
<copy file=".\\src\\com\\ucc\\csd\\CSD.gwt.xml" todir="${WAR_EXPLODED}\\WEB-INF\\classes\\com\\ucc\\csd" />
</target>
<target name="deploy_locally" depends="prep_deploy">
<echo>DID YOU STOP TOMCAT?</echo>
<delete dir="${DEPLOY_DIR}" />
<copy todir="${DEPLOY_DIR}">
<fileset dir="${WAR_EXPLODED}" />
</copy>
<echo>START YOUR TOMCAT</echo>
</target>
<path id="class_path">
<pathelement path=".\\src" />
<pathelement path=".\\src\\main\\java" />
<pathelement path=".\\target\\classes\\" />
<fileset dir="${GWT_HOME}">
<include name="*.jar" />
</fileset>
<fileset dir="${WAR_EXPLODED}\\WEB-INF\\lib">
<include name="*.jar" />
</fileset>
</path>
</project>
UNIX ln -s, or link command
Password:
$ cd /usr/local/tomcat/webapps/
uki@MacBookPro:/usr/local/tomcat/webapps $ pwd
/usr/local/tomcat/webapps
UNIX ln -s, or link command
Password:
$ cd /usr/local/tomcat/webapps/
uki@MacBookPro:/usr/local/tomcat/webapps $ pwd
/usr/local/tomcat/webapps
Email validations
private boolean isEmailBad(String email) { String emailChars = "@."; if (email.indexOf(emailChars) == 1){ log.warn("Email address does not contains @ and . charachters"); } if (email == null || email.length() < 5) { log.warn("Invalid email address length"); return true; } return false; }
Email validations
private boolean isEmailBad(String email) { String emailChars = "@."; if (email.indexOf(emailChars) == 1){ log.warn("Email address does not contains @ and . charachters"); } if (email == null || email.length() < 5) { log.warn("Invalid email address length"); return true; } return false; }
GWTShell arguments
GWTShell arguments
Post Scriptum
I am preparing to cancel the subscription to the e-mail newsletter that sends my articles.
Follow me on:
X.com (Twitter)
Google Scholar
Popular Recent Posts
-
Keishin Kata (敬心形) of Shobudo (正武道) karate kei (敬) respect, reverence, or honor someone or something shin (心) heart or mind kata (形) fo...
-
Before arriving in Okinawa, several experiences prepared me for what I would eventually learn there. Karate was the first. It introduced me ...
-
I came across Ruri Ohama mentioning a book by Takafumi Horie and Yoichi Ochiai titled: “Job Atlas for 10 Years From Now. How Will You Live i...
-
Please look at the newer post: http://ukitech.blogspot.com/2009/09/eclipse-35-galileo-and-gwt-m2-svn.html 1) Upload a new version of Eclipse...
-
I have a habit of "stopping to smell the roses", or as in today's case, to take a photo of baby mushrooms on the forest floor....
-
http://code.google.com/apis/socialgraph/
-
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space or Unable to execute dex: Java heap space Java h...
-
Step 1: Register you app with Facebook. Sign in to Facebook using your standard credentials. Navigate to http://www.facebook.com/developer...
-
In this tutorial we will overview integration basics of Android Studio and Gradle build tools.
Most Popular Articles
-
Affordance as a Function of Intent and Action? As a person passionate about Behavioral Sciences, I found myself unable to shake the impre...
-
Step 1: Register you app with Facebook. Sign in to Facebook using your standard credentials. Navigate to http://www.facebook.com/developer...
-
Please look at the newer post: http://ukitech.blogspot.com/2009/09/eclipse-35-galileo-and-gwt-m2-svn.html 1) Upload a new version of Eclipse...
-
Creating Android ROS nodes to: - add control UI (HMI) - utilize existing phone sensors: -- gyroscope -- GPS -- compass -- camera - do...
-
In this tutorial we will learn how to install the Intellij IDEA database plugin. Start with opening Settings > search for plugins ...
-
Installing TuriCreate on Python 3.6 Anaconda Environment 1) Check what Python version Apple Turi Create supports https://github.com/ap...
-
In this tutorial we will overview integration basics of Android Studio and Gradle build tools.
-
This tutorial shows you how to change the code lower/upper case of code in Android Studio.
-
ImportError : No module named 'sklearn.model_selection' Before doing the embarrassing things I did below, read this: Setting Jupy...
-
This minimal PyTorch example implements a custom recurrent neural network (RNN) cell from first principles, showing how sequence memory eme...









