Update of /cvsroot/bprocessor/bscript
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14102
Modified Files:
.classpath build.xml
Log Message:
Improved build strategy:
- The autogenerated sources are placed in the src directory, but *not* checked in
- The autogenerated sources are placed independent of the regular sources in the pacekage tree to avoid stylechecking.
- All sources are compiled in one go
- The autogenerated sources are not deleted after building to allow inspection
Index: .classpath
===================================================================
RCS file: /cvsroot/bprocessor/bscript/.classpath,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** .classpath 6 Sep 2006 09:49:04 -0000 1.1
--- .classpath 11 Sep 2006 19:07:12 -0000 1.2
***************
*** 3,6 ****
--- 3,7 ----
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="/tools/antlr/antlr.jar"/>
<classpathentry kind="output" path="build"/>
</classpath>
Index: build.xml
===================================================================
RCS file: /cvsroot/bprocessor/bscript/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** build.xml 6 Sep 2006 09:49:04 -0000 1.1
--- build.xml 11 Sep 2006 19:07:12 -0000 1.2
***************
*** 12,22 ****
<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"/>
--- 12,23 ----
<property name="lib.dir" value="${basedir}/lib"/>
<property name="dist.dir" value="${basedir}/dist"/>
+ <property name="parser.dir" value="${src.dir}/net/sourceforge/bprocessor/parser"/>
<property name="checkstyle-results" value="${build.dir}/checkstyle-results.txt" />
<property name="build.compiler" value="modern"/>
</target>
! <target name="compile-grammar" depends="init">
! <mkdir dir="${parser.dir}"/>
<antlr target="${conf.dir}/bscript.g"
! outputdirectory="${parser.dir}">
<classpath>
<pathelement location="${tools.dir}/antlr/antlr.jar"/>
***************
*** 26,34 ****
</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"
--- 27,35 ----
</target>
! <target name="compile" depends="compile-grammar,init">
<ant dir="src" target="compile"/>
</target>
! <target name="compile-old" depends="compile-grammar">
<javac srcdir="${build.dir}" destdir="${build.dir}" deprecation="yes"
debug="yes" target="1.2" source="1.3"
***************
*** 44,47 ****
--- 45,49 ----
<delete dir="${dist.dir}"/>
<delete dir="${doc.api.dir}"/>
+ <delete dir="${parser.dir}"/>
<delete>
<fileset dir="${lib.dir}">
|