Code Search for Developers
 
 
  

build.xml from Jameleon at Krugle


Show build.xml syntax highlighted

<?xml version="1.0"?>
<!--

    Jameleon - An automation testing tool..
    Copyright (C) 2003 Christian W. Hargraves (engrean@hotmail.com)
    
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<project name="jameleon" default="all" basedir=".">

    <property name="jetty.home" value="etc/jetty"/>

    <path id="classpath">
        <fileset dir="lib">
            <include name="**/*.jar"/>
        </fileset>
        <pathelement location="build"/>
    </path>

    <target name="all" depends="clean, main, execute.testcases"/>

    <target name="main" depends="build, copyRes, register.functions"/>

    <target name="execute.testcases" description="Executes a series of test cases">
        <taskdef name="jmln-test" classname="net.sf.jameleon.ant.ExecuteTestCaseTask" classpathref="classpath"/>
        <jmln-test>
            <fileset dir="scripts">
                <include name="**/*.xml"/>
            </fileset>
        </jmln-test>
    </target>

    <target name="register.functions" description="Register function points in the tst/src directory.">
        <taskdef name="jmln-register" classname="net.sf.jameleon.ant.JameleonXDoclet" classpathref="classpath"/>
        <jmln-register outputdir="build">
            <fileset dir="src/java">
                <include name="**/*.java"/>
            </fileset>
        </jmln-register>
    </target>

    <target name="init" description="creates the needed directories">
        <mkdir dir="build"/>
        <tstamp/>
    </target>
    

    <target name="build" depends="init"
            description="This should not be called independently.">
        <javac srcdir="src/java"
               destdir="build"
               debug="on"
               deprecation="on"
               optimize="on"
               classpathref="classpath"/>
    </target>

    <target name="copyRes">
        <copy todir="build">
            <fileset dir="res">
                <include name="**/**"/>
            </fileset>
        </copy>
    </target>

    <target name="clean" >
        <delete failonerror="false">
            <fileset dir=".">
                <include name="TestResults*"/>
            </fileset>
            <fileset dir="jameleon_test_results"/>
            <fileset dir="build"/>
        </delete>
    </target>

    <target name="jetty.start" description="Start Jetty up">
        <echo message="Attempting to start Jetty from ${jetty.home}"/>
        <java jar="${jetty.home}/start.jar" fork="true" dir="${jetty.home}">
            <sysproperty key="JETTY_HOME" path="${jetty.home}"/>
            <arg value="etc/jetty.xml"/>
        </java>
    </target>

    <target name="jetty.stop" description="Start Jetty up">
        <echo message="Attempting to stop Jetty"/>
        <java jar="${jetty.home}/stop.jar" fork="true" dir="${jetty.home}">
            <sysproperty key="JETTY_HOME" path="${jetty.home}"/>
        </java>
        <echo message="Jetty has been stopped."/>
    </target>

    <target name="tutorial.start" depends="jetty.start" description="Start Jetty up"/>

    <target name="run.gui" description="Runs the GUI">
        <java classname="net.sf.jameleon.ui.JameleonUI" classpathref="classpath"/>
    </target>

</project>




See more files for this project here

Jameleon

Jameleon is a data-driven automated testing tool that is easily extensible via plug-ins. Features of applications are automated in Java and tied together independently in XML, creating self-documenting automated test cases.

Project homepage: http://sourceforge.net/projects/jameleon
Programming language(s): Java,XML
License: other

  build.bat
  build.sh
  build.xml