build.xml revision 0:37a05a11f281
11558Srgrimes<!--
21558Srgrimes Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
31558Srgrimes
41558Srgrimes Redistribution and use in source and binary forms, with or without
51558Srgrimes modification, are permitted provided that the following conditions
61558Srgrimes are met:
71558Srgrimes
81558Srgrimes   - Redistributions of source code must retain the above copyright
91558Srgrimes     notice, this list of conditions and the following disclaimer.
101558Srgrimes
111558Srgrimes   - Redistributions in binary form must reproduce the above copyright
121558Srgrimes     notice, this list of conditions and the following disclaimer in the
131558Srgrimes     documentation and/or other materials provided with the distribution.
141558Srgrimes
151558Srgrimes   - Neither the name of Sun Microsystems nor the names of its
161558Srgrimes     contributors may be used to endorse or promote products derived
171558Srgrimes     from this software without specific prior written permission.
181558Srgrimes
191558Srgrimes THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
201558Srgrimes IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
211558Srgrimes THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221558Srgrimes PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
231558Srgrimes CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
241558Srgrimes EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
251558Srgrimes PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
261558Srgrimes PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
271558Srgrimes LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
281558Srgrimes NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
291558Srgrimes SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
301558Srgrimes-->
311558Srgrimes
321558Srgrimes<project name="jconsole" default="build" basedir=".">
331558Srgrimes    
341558Srgrimes    <import file="../common/shared.xml"/>
3536997Scharnier    
3623669Speter    <target name="-pre-compile">
3736997Scharnier        <copy
3836997Scharnier            file="${root}/src/share/classes/sun/tools/jconsole/Version-template.java"
3950476Speter            tofile="${gensrc.dir}/sun/tools/jconsole/Version.java"/>
401558Srgrimes        <replace
411558Srgrimes            file="${gensrc.dir}/sun/tools/jconsole/Version.java"
421558Srgrimes            token="@@jconsole_version@@"
431558Srgrimes            value="${jconsole.version}"/>
441558Srgrimes    </target>
451558Srgrimes    
461558Srgrimes    <target name="-post-compile">
471558Srgrimes        <mkdir dir="${dist.dir}/lib"/>
481558Srgrimes        <jar destfile="${dist.dir}/lib/jconsole.jar"
491558Srgrimes             manifest="${classes.dir}/sun/tools/jconsole/manifest">
501558Srgrimes            <fileset dir="${classes.dir}">
511558Srgrimes                <include name="sun/tools/jconsole/**/*.class"/>
521558Srgrimes                <include name="com/sun/tools/jconsole/**/*.class"/>
531558Srgrimes                <include name="sun/tools/jconsole/resources/*.gif"/>
541558Srgrimes                <include name="sun/tools/jconsole/resources/*.png"/>
551558Srgrimes            </fileset>
561558Srgrimes        </jar>
571558Srgrimes    </target>
581558Srgrimes    
591558Srgrimes    <target name="run" depends="-init,build">
601558Srgrimes        <property name="jvm.args" value=""/>
611558Srgrimes        <java classname="sun.tools.jconsole.JConsole"
621558Srgrimes              fork="true"
631558Srgrimes              classpath="${classes.dir}:${bootstrap.jdk}/lib/tools.jar">
641558Srgrimes            <jvmarg line="${jvm.args}"/>
651558Srgrimes        </java>
661558Srgrimes    </target>
671558Srgrimes    
681558Srgrimes    <target name="clean" depends="-init,shared.clean">
691558Srgrimes        <delete file="${dist.dir}/lib/jconsole.jar"/>
701558Srgrimes    </target>
711558Srgrimes    
721558Srgrimes</project>
731558Srgrimes