Commit 9aada868 authored by Kevin Bi's avatar Kevin Bi
Browse files

"Moved the build.xml file to the base directory, changed the tarantula dir to...

"Moved the build.xml file to the base directory, changed the tarantula dir to be included with a src dir, moved the lib directory back to the base directory"
e Please enter the commit message for your changes. Lines starting
parent d18b0f3a
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@ for this project the GZoltar jar file calculates the suspiciousness of lines, it

Tarantula
---------
Tarantula is the second fault localization tool in this repo. For this project, tacoco is used to obtain a json format coverage matrix of the program.
Next Main.java uses the coverage matrix and the test results to calculate suspiciousness of lines.
Tarantula is the second fault localization tool in this repo. For this project, tacoco is used to obtain a json format coverage matrix of the program, 
then java programs in the src/tarantula dir use the coverage matrix to  calculate suspiciousness of lines.

(Note: Test programs should have their test headers named using the following format test1, test2, test3 ...test33 ect. The Runner.java class in the tarantula
dir will not be able to work unless the headers have the format test#, see the src code in Runner.java for more information)
@@ -97,9 +97,9 @@ The directory structure is as follows
		|
		|--- tacoco:                    Repo, used to obtain per-test line coverage information
		|
		|--- tarantula:			Source files to obtain the suspiciousness for lines in a program
		|--- src:                       Source files for tarantula java implementation
		|
		|--- triangle:			Test program in src, seperate version of test program in tarantula, maven build
		|--- triangle:                  Test program, maven build


	
+10 −10
Original line number Diff line number Diff line
<project name="tarantula" default="compile" basedir=".">

<property name="tarantula.src.dir" value="./tarantula/src/tarantula"/>
<property name="tarantula.bin.dir" value ="./tarantula/bin"/>
<property name="tarantula.src.dir" value="./src/tarantula"/>
<property name="tarantula.bin.dir" value ="./bin"/>

<!-- Target to clean up -->
    <target name="clean-tarantula" description="Clean">
        <delete dir="./tarantula/bin"/>
    <target name="clean.tarantula" description="Clean">
        <delete dir="./bin"/>
    </target>

<!-- Target to initialize build -->
    <target name="init-tarantula">
        <mkdir dir="./tarantula/bin"/>
    <target name="init.tarantula">
        <mkdir dir="./bin"/>
    </target>

<!-- Target to compile the project -->
    <target name="compile-tarantula" depends="init-tarantula" description="Compile">
    <target name="compile.tarantula" depends="init.tarantula" description="Compile">
        <javac includeantruntime="true" srcdir="${tarantula.src.dir}" destdir="${tarantula.bin.dir}" debug="yes" fork="no">
            <classpath>
                <pathelement path="tarantula/lib/json-simple-1.1.1.jar"/>
                <pathelement path="tarantula/lib/junit-4.11.jar"/>
                <pathelement path="lib/json-simple-1.1.1.jar"/>
                <pathelement path="lib/junit-4.11.jar"/>
            </classpath>
        </javac>
    </target>

<!-- Target to run the main-->
    <target name="run-tarantula" depends="compile-tarantula">
    <target name="run.tarantula" depends="compile.tarantula">
        <java classname="tarantula.Main">
            <classpath>
               <pathelement path="lib/json-simple-1.1.1.jar"/>
(282 KiB)

File moved.

Loading