From: Pavel V. <va...@us...> - 2002-08-21 12:51:46
|
Update of /cvsroot/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv21941 Modified Files: readme.txt build.xml Log Message: new build scripts by michal Index: readme.txt =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/readme.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** readme.txt 7 May 2002 21:06:37 -0000 1.5 --- readme.txt 21 Aug 2002 12:51:43 -0000 1.6 *************** *** 1,42 **** ! Building with Ant: ! ------------------ ! a) If ou have ant with script wrapper you can use. ! ant -buildfile build.xml [target] ! b) If you have installed Ant in the do-it-yourself way, Ant can be started with: ! ! java org.apache.tools.ant.Main -buildfile build.xml [target] ! This assumes you have set your classpath to include: ! ant.jar (if you have neatbeans, it can be found in netbeans/modules/ant.jat) ! jars/classes for your XML parser ! the JDK's required jar/zip files (in your $(JDK_HOME)/lib/tools.jar) ! c) Double click on build.xml in netbeans IDE ! Targets: ! ------- ! compile compilation ! jar make jar package ! javadoc genarate documentation ! doxygen generate doxygen documentation ! clean clean built products ! cleanall clean build products and generated documentation ! all all this ! ! ! Example: ! ------- ! set JAVA_HOME=d:\j2sdk1.4.0 ! set CLASSPATH=%CLASSPATH%;d:\netbeans\modules\ant.jar;%JAVA_HOME%\lib\tools.jar ! d:\j2sdk1.4.0\bin\java org.apache.tools.ant.Main ! ! ! ---------------------------------------------------------------------- ! If you do not have the Ant, you can get it from ! http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/ ! ! Doxygen can be dowloaded from ! http://www.stack.nl/~dimitri/doxygen/ --- 1,20 ---- ! For succesfull compilation you need to install: ! * Java SDK (downloadable at http://java.sun.com) + * Ant (downloadable at http://jakarta.apache.org/ant) ! * Doxygen (downloadable at http://www.stack.nl/~dimitri/doxygen) - it is optional ! Ant targets: ! classes - compiles all Java sources ! jar - creates jar archive ! javadoc - generates Javadoc documentation ! doxygen_html - generates Doxygen HTML documentation ! doxygen_latex - generates Doxygen LaTeX documentation ! all = compile + jar + javadoc + doxygen_html + doxygen_latex ! docs = javadoc + doxygen_html + doxygen_latex ! clean - deletes all compiled or generated files ! PLEASE CHECK ALL PATHS AT THE BEGGINING OF THE build.xml FILE Index: build.xml =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/build.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** build.xml 17 Jul 2002 21:37:38 -0000 1.11 --- build.xml 21 Aug 2002 12:51:43 -0000 1.12 *************** *** 1,162 **** <?xml version="1.0" encoding="UTF-8"?> ! <project basedir="../" default="jar" name="jpiimpl"> <target name="init"> <tstamp/> ! <!-- You can set up any variables you want used throughout the script here. --> ! <!-- configuration ************************************************** --> ! <!-- doxygen --> ! <property name="doxygen_dir" location="D:\Program Files\doxygen-1.2.12"/> ! <property name="doxygen_exec" location="${doxygen_dir}\bin\doxygen.exe"/> ! ! <!-- end of configuration ******************************************* --> ! ! <!-- Common classpath --> ! <path id="project.classpath"> ! <pathelement location="jpiimpl"/> ! <pathelement location="jpi"/> ! </path> ! ! <!-- Common jar pattern set --> ! <patternset id="project.jarpattern.exclude"> ! <exclude name="**/*.java"/> ! <exclude name="**/*.bak"/> ! <exclude name="**/*.form"/> ! <exclude name="**/.nbattrs"/> ! <exclude name="docs"/> ! <!-- others are in deafult exlcudes (cvsfiles, "*~",".#*", etc.) --> ! </patternset> ! </target> ! ! ! <!-- <target name="interface" depends="init"> ! <javac debug="true" failonerror="true" srcdir="jpi/net"> ! <classpath> ! <pathelement location="jpiimpl"/> ! <pathelement location="jpi"/> ! </classpath> ! <src> ! <pathelement location="jpiimpl/net"/> ! <pathelement location="jpi/net"/> ! </src> ! </javac> ! </target> --> ! ! ! <target name="compile" depends="init" description="Compile .java files"> ! <property name="cp" refid="project.classpath"/> ! <echo message="Classpath is ${cp}"/> ! <javac classpathref="project.classpath" debug="true" failonerror="true"> ! <src> ! <pathelement location="jpiimpl"/> ! <pathelement location="jpi"/> ! </src> ! <include name="net/**/*"/> ! <!-- <exclude name="net/sourceforge/javaprofiler/jpiimpl/realtime/**"/> --> ! </javac> ! </target> ! ! ! <target name="jar" depends="init,compile" description="Create .jar"> ! <!-- To make a standalone app: --> ! <!-- 1. Create a myapp.mf manifest somewhere. --> ! <!-- 2. Put in it: --> ! <!-- Manifest-Version: 1.0 --> ! <!-- Main-Class: com.foo.Main --> ! <!-- 3. Pass to <jar>: manifest="myapp.mf" --> ! <jar compress="true" defaultexcludes="yes" jarfile="jpiimpl/jpiimpl.jar"> ! <fileset dir="jpiimpl"> ! <include name="net/**/*"/> ! <patternset refid="project.jarpattern.exclude"/> ! <exclude name="jpiimpl.mf"/> ! <exclude name="jpiimpl.jar"/> ! </fileset> ! <fileset dir="jpi"> ! <include name="net/**/*"/> ! <patternset refid="project.jarpattern.exclude"/> </fileset> </jar> </target> ! ! <target name="all" depends="init,jar,javadoc,doxygen" description="Build everything."> ! <echo message="Application built. "/> ! </target> ! ! ! <!-- <target name="test" depends="init,all" description="Try running it."> ! <java classname="com.foo.Main" fork="true" failonerror="true"> ! <classpath> ! <pathelement location="."/> ! </classpath> --> ! <!-- Pass some args, perhaps: --> ! <!-- <arg value="-myfile"/> --> ! <!-- Will be given as an absolute path: --> ! <!-- <arg file="myfile.txt"/> ! </java> ! </target> --> ! ! ! <target name="javadoc" depends="init" description="Javadoc for my API."> ! <mkdir dir="jpiimpl/docs/javadoc"/> ! <javadoc Windowtitle="JPI and Implementation" defaultexcludes="yes" destdir="jpiimpl/docs/javadoc" ! group="JPI net.sourceforge.javaprofiler.jpi*,Implementation net.sourceforge.javaprofiler.jpiimpl*" ! private="on" failonerror="false"> ! <doctitle>Java Profiling Interface and Implementation</doctitle> <package name="net.sourceforge.javaprofiler.jpiimpl.*"/> - <package name="net.sourceforge.javaprofiler.jpi.*"/> - - <!-- <group title="Group 1 Packages" packages="net.sourceforge.javaprofiler.jpi*"/> - <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*:net*"/> --> - - <!-- <group title="Java Profiling Interface" > - <package name="net.sourceforge.javaprofiler.jpi*"/> - </group> - <group title="Implementation" > - <package name="net.sourceforge.net.jpiimpl*"/> - </group> --> - - <sourcepath> - <pathelement location="jpi"/> - <pathelement location="jpiimpl"/> - </sourcepath> </javadoc> </target> ! ! ! <target name="doxygen" depends="init" description="Doxygen documentation for my API."> ! <echo message="executing: ${doxygen_exec}"/> ! <exec executable="${doxygen_exec}" dir="jpiimpl/docs" failonerror="false"> ! <!-- <arg line=""/> ! <arg vaule=""/> <arg path=""> --> ! <arg file="jpiimpl/docs/doc_html.conf"/> ! </exec> ! <exec executable="${doxygen_exec}" dir="jpiimpl/docs" failonerror="false"> ! <arg file="jpiimpl/docs/doc_latex.conf"/> ! </exec> ! </target> ! ! ! <target name="clean" depends="init" description="Clean all build products."> ! <delete> ! <fileset dir="jpiimpl"> ! <include name="**/*.class"/> ! </fileset> ! </delete> ! <delete> ! <fileset dir="jpi"> ! <include name="**/*.class"/> ! </fileset> ! </delete> ! <delete file="jpiimpl/jpiimpl.jar"/> </target> ! ! ! <target name="cleanall" depends="init,clean" description="Clean all build products and documnetation."> ! <delete dir="jpiimpl/docs/javadoc"/> ! <delete dir="jpiimpl/docs/html"/> ! <delete dir="jpiimpl/docs/latex"/> </target> - </project> --- 1,64 ---- <?xml version="1.0" encoding="UTF-8"?> ! <project name="jpiimpl" basedir="." default="jar"> ! ! <!-- configuration ************************************************** --> ! ! <property name="doxygen" location="/usr/bin/doxygen"/> ! ! <property name="jpidir" location="../jpi"/> ! ! <!-- end of configuration ******************************************* --> <target name="init"> <tstamp/> ! <mkdir dir="output"/> ! </target> ! <target name="classes" depends="init" description="Compile Java sources"> ! <ant dir="${jpidir}" target="classes"/> ! <mkdir dir="output/classes"/> ! <javac srcdir="." destdir="output/classes" classpath="${jpidir}/output/classes" debug="true" failonerror="true"/> ! </target> ! ! <target name="jar" depends="init,classes" description="Create jar archive"> ! <jar jarfile="output/${ant.project.name}.jar"> ! <fileset dir="output/classes"/> ! <fileset dir="."> ! <include name="**/*.properties"/> </fileset> </jar> </target> ! <target name="javadoc" depends="init" description="Generate Javadoc documentation"> ! <mkdir dir="output/javadoc"/> ! <javadoc sourcepath="." destdir="output/javadoc"> <package name="net.sourceforge.javaprofiler.jpiimpl.*"/> </javadoc> </target> ! ! <target name="doxygen_html" depends="init" description="Generate Doxygen HTML documentation"> ! <mkdir dir="output/doxygen"/> ! <exec executable="${doxygen}" dir="output/doxygen" failonerror="false"> ! <arg file="conf/doxygen_html.conf"/> ! </exec> </target> ! ! <target name="doxygen_latex" depends="init" description="Generate Doxygen LaTeX documentation"> ! <mkdir dir="output/doxygen"/> ! <exec executable="${doxygen}" dir="output/doxygen" failonerror="false"> ! <arg file="conf/doxygen_latex.conf"/> ! </exec> ! </target> ! ! <target name="all" depends="jar,javadoc,doxygen_html,doxygen_latex" ! description="Create jar archive, generate Javadoc, Doxygen HTML and LaTeX documentation"> ! </target> ! ! <target name="docs" depends="javadoc,doxygen_html,doxygen_latex" ! description="Generate Javadoc, Doxygen HTML and LaTeX documentation"> ! </target> ! ! <target name="clean" description="Delete all built files"> ! <delete dir="output"/> </target> </project> |