[Bprocessor-commit] bscript .cvsignore, NONE, 1.1 .classpath, NONE, 1.1 .project, NONE, 1.1 build.s
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-09-06 09:49:13
|
Update of /cvsroot/bprocessor/bscript In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1549 Added Files: .cvsignore .classpath .project build.sh build.xml Log Message: Base version --- NEW FILE: .cvsignore --- build dist *.tar.gz *.zip *.tar.bz2 --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>bscript</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> --- 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="bscript" default="compile" basedir="."> <target name="init"> <property name="name" value="bscript"/> <property name="version" value="0.1"/> <property name="tools.dir" value="${basedir}/../tools"/> <property name="build.dir" value="${basedir}/build"/> <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="checkstyle-results" value="${build.dir}/checkstyle-results.txt" /> <property name="build.compiler" value="modern"/> </target> <target name="compile-grammar" depends="compile-src,init"> <mkdir dir="${build.dir}/net/sourceforge/bprocessor/model/parser"/> <antlr target="${conf.dir}/bscript.g" outputdirectory="${build.dir}/net/sourceforge/bprocessor/model/parser"> <classpath> <pathelement location="${tools.dir}/antlr/antlr.jar"/> </classpath> </antlr> </target> <target name="compile-src" depends="checkstyle,init"> <ant dir="src" target="compile"/> </target> <target name="compile" depends="compile-grammar"> <javac srcdir="${build.dir}" destdir="${build.dir}" deprecation="yes" debug="yes" target="1.2" source="1.3" includes="net/**"> <classpath> <pathelement location="${tools.dir}/antlr/antlr.jar"/> </classpath> </javac> </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"></target> <target name="checkstyle" depends="prepare"> <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpath="${tools.dir}/checkstyle/checkstyle.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> --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="build"/> </classpath> |