[Bprocessor-commit] sensobyg build.sh, NONE, 1.1 build.xml, NONE, 1.1 .classpath, 1.1, 1.2
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-12-17 12:16:42
|
Update of /cvsroot/bprocessor/sensobyg In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13697 Modified Files: .classpath Added Files: build.sh build.xml Log Message: Index: .classpath =================================================================== RCS file: /cvsroot/bprocessor/sensobyg/.classpath,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .classpath 16 Dec 2010 10:17:50 -0000 1.1 --- .classpath 17 Dec 2010 12:16:34 -0000 1.2 *************** *** 3,6 **** <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> ! <classpathentry kind="output" path="bin"/> </classpath> --- 3,6 ---- <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> ! <classpathentry kind="output" path="build"/> </classpath> --- NEW FILE: build.sh --- #!/bin/sh if [ -z $ANT_HOME ]; then echo "Please set the ANT_HOME variable." exit 1 fi if [ -z $JAVA_HOME ]; then echo "Please set the JAVA_HOME variable." exit 1 fi export PATH=$ANT_HOME/bin:$JAVA_HOME/bin:$PATH ant $* --- NEW FILE: build.xml --- <project name="sensobyg" default="compile" basedir="."> <target name="init"> <property name="name" value="sensobyg"/> <property name="version" value="0.1"/> <property name="tools.dir" value="${basedir}/../tools"/> <property name="build.dir" value="${basedir}/build"/> <property name="model.dir" value="${basedir}/../model"/> <property name="src.dir" value="${basedir}/src"/> <property name="conf.dir" value="${src.dir}/etc"/> <property name="doc.dir" value="${basedir}/doc"/> <property name="doc.api.dir" value="${doc.dir}/api"/> <property name="lib.dir" value="${basedir}/lib"/> <property name="dist.dir" value="${basedir}/dist"/> <property name="build.compiler" value="modern"/> </target> <target name="compile" depends="prepare"> <ant dir="src" target="compile"/> </target> <target name="clean" depends="init"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> <delete dir="${doc.api.dir}"/> <delete> <fileset dir="${lib.dir}"> <include name="**/*.jar"/> </fileset> </delete> <delete> <fileset dir="${basedir}" defaultexcludes="no"> <include name="**/*~"/> </fileset> </delete> </target> <target name="prepare" depends="init"> <mkdir dir="${build.dir}"/> <mkdir dir="${lib.dir}"/> </target> <target name="checkstyle" depends="prepare"> <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpath="${tools.dir}/checkstyle/checkstyle-all-4.2.jar"/> <checkstyle config="${tools.dir}/checkstyle/checkstyle.xml" failOnViolation="true"> <fileset dir="${src.dir}" includes="**/*.java"/> </checkstyle> </target> <target name="jar" depends="compile"> <mkdir dir="${dist.dir}"/> <jar jarfile="${dist.dir}/${name}.jar" basedir="${build.dir}" compress="true" includes="**/*" excludes="depcache/**"> </jar> </target> <target name="dist" depends="jar"> </target> </project> |