From: Hirzel P. <ph...@us...> - 2008-06-18 16:02:01
|
Update of /cvsroot/tcotool/TCO-Tool In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv29496 Added Files: build.xml Log Message: new --- NEW FILE: build.xml --- <?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="jar" name="TCO_Tool"> <description> Build the Ant-Targets for TCO-Tool by http://www.softenvironment.ch @see http://www.tcotool.org </description> <!-- set global properties for this build --> <property name="src" value="${basedir}/src"/> <property name="build" value="${basedir}/build"/> <property name="dist" value="${build}/dist"/> <property name="buildnr" value="1.4.4"/> <target name="init"> <!-- Create the time stamp --> <tstamp/> <property name="projectjar" value="${build}/jar/${ant.project.name}.jar"/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> <mkdir dir="${build}/jar"/> </target> <target depends="init" name="run"> <java jar="${projectjar}" fork="true"> <arg value="-debug"/> </java> </target> <target depends="init" name="compile"> <!-- build dependendent libs --> <!-- for target: VBS & DEMO only --> <ant inheritAll="false" antfile="../seMisc/build.xml" target="jar"/> <ant inheritAll="false" antfile="../JOMM/build.xml" target="jar"/> <!-- Compile the java code from ${src} into ${build}/classes --> <mkdir dir="${build}/classes"/> <javac destdir="${build}/classes" includes="**/*.java" excludes="**/test/*.java"> <classpath> <!--pathelement location="../ehibasics/build/jar/ehibasics.jar"/> <pathelement location="../sebase/build/jar/sebase.jar"/> <pathelement location="../jomm/lib/jta.jar"/> <pathelement location="../jdo/src/jdo.jar"/> <pathelement location="../xerces-1_4_4/xerces.jar"/--> <pathelement location="../xerces-2_9_0/xercesImpl.jar"/> <pathelement location="../xerces-2_9_0/xml-apis.jar"/> <pathelement location="../jomm/build/jar/jomm.jar"/> <!-- for target: VBS & DEMO only --> <pathelement location="../seMisc/build/jar/seMisc.jar"/> <pathelement location="../jhotdraw60b1/jhotdraw.jar"/> <pathelement location="../jfreechart-1.0.9/lib/jcommon-1.0.12.jar"/> <pathelement location="../jfreechart-1.0.9/lib/jfreechart-1.0.9.jar"/> <pathelement location="../JPF/jpf.jar"/> <pathelement location="../JPF/lib/commons-logging.jar"/> </classpath> <src path="${src}" /> </javac> </target> <!-- tcotool.jar without plugins --> <target depends="compile" name="jar"> <delete file="${projectjar}" quiet="true"/> <jar jarfile="${projectjar}" manifest="meta-inf/MANIFEST.MF"> <fileset dir="${build}/classes" excludes="**/*.java, **/test/*.*" includes="**/*.class"/> <fileset dir="${src}" includes="**/*" excludes="**/CVS/*, **/*.java"/> <fileset dir="${basedir}" includes="other/*" excludes="**/CVS/*"/> <!--zipfileset src="../xerces-1_4_4/xerces.jar"/--> <zipfileset src="../xerces-2_9_0/xercesImpl.jar"/> <zipfileset src="../xerces-2_9_0/xml-apis.jar"/> <zipfileset src="../JOMM/build/jar/jomm.jar"/> <!-- for target: VBS & DEMO only --> <zipfileset src="../seMisc/build/jar/seMisc.jar"/> <zipfileset src="../jhotdraw60b1/jhotdraw.jar"/> <zipfileset src="../jfreechart-1.0.9/lib/jcommon-1.0.12.jar"/> <zipfileset src="../jfreechart-1.0.9/lib/jfreechart-1.0.9.jar"/> <zipfileset src="../JPF/jpf.jar"/> <zipfileset src="../JPF/lib/commons-logging.jar"/> </jar> </target> <target depends="jar" name="corePlugin"> <mkdir dir="${build}/jar/plugins"/> <mkdir dir="${build}/jar/plugins/org.tcotool.core.runtime/classes"/> <javac destdir="${build}/jar/plugins/org.tcotool.core.runtime/classes" includes="**/*.java" excludes="**/test/*.*"> <classpath> <pathelement location="${projectjar}"/> </classpath> <src path="${basedir}/plugins/org.tcotool.core.runtime/source"/> </javac> <copy todir="${build}/jar/plugins/org.tcotool.core.runtime"> <fileset dir="${basedir}/plugins/org.tcotool.core.runtime" includes="plugin.xml" excludes="**/Thumbs.db"/> </copy> </target> <target depends="corePlugin" name="seFinance"> <mkdir dir="${build}/jar/plugins/ch.softenvironment.tcotool.finance/classes"/> <javac destdir="${build}/jar/plugins/ch.softenvironment.tcotool.finance/classes" includes="**/*.java" excludes="**/test/*.*"> <classpath> <pathelement location="${projectjar}"/> </classpath> <src path="${basedir}/plugins/ch.softenvironment.tcotool.finance/source"/> </javac> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.finance"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.finance" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> </target> <target depends="corePlugin" name="seTco"> <mkdir dir="${build}/jar/plugins/ch.softenvironment.tcotool.tco/classes"/> <javac destdir="${build}/jar/plugins/ch.softenvironment.tcotool.tco/classes" includes="**/*.java" excludes="**/test/*.*"> <classpath> <pathelement location="${projectjar}"/> </classpath> <src path="${basedir}/plugins/ch.softenvironment.tcotool.tco/source"/> </javac> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.tco"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.tco" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> </target> <target depends="corePlugin" name="seBench"> <mkdir dir="${build}/jar/plugins/ch.softenvironment.tcotool.benchmark/classes"/> <javac destdir="${build}/jar/plugins/ch.softenvironment.tcotool.benchmark/classes" includes="**/*.java" excludes="**/test/*.*"> <classpath> <pathelement location="${projectjar}"/> </classpath> <src path="${basedir}/plugins/ch.softenvironment.tcotool.benchmark/source"/> </javac> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.benchmark"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.benchmark" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> </target> <target depends="seBench, seFinance, seTco" name="vbs"> <mkdir dir="${build}/jar/plugins/ch.softenvironment.tcotool.vbs/classes"/> <javac destdir="${build}/jar/plugins/ch.softenvironment.tcotool.vbs/classes" includes="**/*.java" excludes="**/test/*.*"> <classpath> <pathelement location="${projectjar}"/> <pathelement location="../seMisc/build/jar/seMisc.jar"/> <pathelement location="${build}/jar/plugins/org.tcotool.core.runtime/classes"/> </classpath> <src path="${basedir}/plugins/ch.softenvironment.tcotool.vbs/source" /> <src path="src"/> </javac> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.vbs"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.vbs" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> </target> <target depends="vbs" name="demo"> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.vbs"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.vbs" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.benchmark"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.benchmark" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> </target> <target depends="seFinance, seTco" name="cab"> <!-- Buruli Plugin --> <mkdir dir="${build}/jar/plugins/ch.softenvironment.tcotool.cab/classes"/> <javac destdir="${build}/jar/plugins/ch.softenvironment.tcotool.cab/classes" includes="**/*.java" excludes="**/test/*.*"> <classpath> <pathelement location="${projectjar}"/> <pathelement location="${build}/jar/plugins/org.tcotool.core.runtime/classes"/> </classpath> <src path="${basedir}/plugins/ch.softenvironment.tcotool.cab/source" /> </javac> <copy todir="${build}/jar/plugins/ch.softenvironment.tcotool.cab"> <fileset dir="${basedir}/plugins/ch.softenvironment.tcotool.cab" includes="plugin.xml, resources/**/*.*" excludes="**/Thumbs.db"/> </copy> </target> <target depends="init" name="srcdist"> <mkdir dir="${dist}"/> <!--property file="${src}/ch/ehi/umleditor/application/Version.properties" prefix="buildnr."/--> <!--property name="buildnr" value="${buildnr.versionMajor}.${buildnr.versionMinor}.${buildnr.versionMicro}"/--> <delete file="${dist}/${ant.project.name}-${buildnr}.src.zip" quiet="true"/> <zip zipfile="${dist}/${ant.project.name}-${buildnr}.src.zip"> <zipfileset dir="." prefix="${ant.project.name}-${buildnr}"> <patternset includes="build.xml"/> <patternset includes=".project"/> <patternset includes=".classpath"/> <patternset includes="lib/**"/> <patternset includes="meta-inf/MANIFEST.MF"/> <patternset includes="model/**" excludes="**/CVS/*"/> <patternset includes="other/**" excludes="**/CVS/*"/> <patternset includes="src/**" excludes="**/CVS/*"/> <patternset includes="plugins/org.tcotool.core.runtime/**" excludes="**/CVS/*"/> <patternset includes="XSLT/**" excludes="**/CVS/*"/> <!--patternset includes="resources/de/**/*.properties"/> <patternset includes="resources/fr/**/*.properties"/--> <!--patternset includes="docs/bindist/*.txt"/--> <!-- <patternset includes="doc/**"/> <patternset includes="other/**"/> <patternset includes="test/**"/> <patternset includes="tools/**"/> --> </zipfileset> </zip> </target> <!-- NOT YET TESTED --> <target depends="init" name="javadocs"> <mkdir dir="${build}/javadoc/api"/> <javadoc Public="true" Windowtitle="TCO-Tool API" destdir="${build}/javadoc/api" packagenames="org.tcotool.*, ch.softenvironment.*"> <sourcepath path="${src}"/> </javadoc> </target> <target depends="init" name="bindist"> <property file="${src}/org/tcotool/application/Version.properties" prefix="buildnr."/> <property name="buildnr" value="${buildnr.versionMajor}.${buildnr.versionMinor}.${buildnr.versionMicro}"/> <delete file="${dist}/${ant.project.name}-${buildnr}.zip" quiet="true"/> <zip zipfile="${dist}/${ant.project.name}-${buildnr}.zip"> <zipfileset dir="." includes="build/jar/tcotool.jar" fullpath="${ant.project.name}-${buildnr}/${ant.project.name}.jar"/> <!--zipfileset dir="." includes="docs/bindist/CHANGELOG.txt" fullpath="${ant.project.name}-${buildnr}/CHANGELOG.txt"/> <zipfileset dir="." includes="docs/bindist/README.txt" fullpath="${ant.project.name}-${buildnr}/README.txt"/> <zipfileset dir="." includes="docs/bindist/README_de.txt" fullpath="${ant.project.name}-${buildnr}/README_de.txt"/> <zipfileset dir="." includes="lib/jh.jar" fullpath="${ant.project.name}-${buildnr}/jh.jar"/> <zipfileset dir="." includes="lib/ili2c.jar" fullpath="${ant.project.name}-${buildnr}/ili2c.jar"/> <zipfileset dir="." includes="other/LICENSE.lgpl" fullpath="${ant.project.name}-${buildnr}/LICENSE.lgpl"/> <zipfileset dir="." includes="other/LICENSE.apache" fullpath="${ant.project.name}-${buildnr}/LICENSE.apache"/--> </zip> </target> <!-- <target depends="srcdist,bindist" name="dist"/> <target depends="init" name="bindist"> <delete file="${dist}/${ant.project.name}-${DSTAMP}.zip" quiet="true"/> <zip zipfile="${dist}/${ant.project.name}-${DSTAMP}.zip"> <zipfileset dir="." includes="build/jar/ili2c.jar" fullpath="${ant.project.name}-${DSTAMP}/${ant.project.name}.jar"/> <zipfileset dir="." includes="doc/bindist/CHANGELOG.txt" fullpath="${ant.project.name}-${DSTAMP}/CHANGELOG.txt"/> <zipfileset dir="." includes="doc/bindist/README.txt" fullpath="${ant.project.name}-${DSTAMP}/README.txt"/> </zip> </target> --> <target name="clean"> <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> <delete dir="${dist}"/> <delete> <fileset dir="${basedir}" defaultexcludes="no"> <include name="**/*.bak"/> <include name="**/bak~/*"/> <include name="**/*~"/> </fileset> </delete> </target> </project> |