Commit 6bb54a32 authored by František Haas's avatar František Haas

fixed example bugs

fixed some details reported by findbugs and pmd 
added libs licenses
improved marker javadoc
removed scripts from build.xml, added ant-contrib
parent 27fd4f3b
================================================================================
= DiSL
================================================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
......@@ -201,34 +204,8 @@
limitations under the License.
For the library lib/asm-debug-all-4.0.jar
================================================================================
= LIBRARIES
================================================================================
Licenses for libraries used in the project are in the lib directory.
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
......@@ -30,10 +30,8 @@ Firstly, building of suite test apps and instrumentations is handled by a
scripted target that lists all directories in a "ch.usi.dag.disl.test2.suite"
package and one by one "app" and "instr" package are jared.
If not scripted, evil ant-contrib would be required.
Secondly, when running the instances of client and server using Process API
never forget to clear environemnt variables as inherited classpath could cause
never forget to clear environment variables as inherited classpath could cause
serious troubles.
If a suite instr test contains a manifest file it's used and if none is present
......
......@@ -6,6 +6,10 @@ junit.core.path=lib/${junit.core.lib}
junit.hamcrest.lib=hamcrest-core-1.3.jar
junit.hamcrest.path=lib/${junit.hamcrest.lib}
ant-contrib.lib=ant-contrib-0.6.jar
ant-contrib.resource=net/sf/antcontrib/antlib.xml
ant-contrib.path=lib/${ant-contrib.lib}
src.disl=src
src.dynbypass=src-dynbypass
src.dynbypass.act=src-dynbypass-act
......
......@@ -87,10 +87,7 @@
<target name="compile" depends="compile-disl,compile-agent-java,compile-agent-c,compile-test,compile-reserver,compile-redispatch" />
<target name="package-dislserver" depends="compile-disl">
<jar basedir="${bin}" destfile="${build}/disl-server.jar"
includes="ch/usi/dag/disl/**,ch/usi/dag/dislserver/**"
excludes="ch/usi/dag/disl/test/**,ch/usi/dag/disl/testtools/**">
<jar basedir="${bin}" destfile="${build}/disl-server.jar" includes="ch/usi/dag/disl/**,ch/usi/dag/dislserver/**" excludes="ch/usi/dag/disl/test/**,ch/usi/dag/disl/testtools/**">
<manifest>
<attribute name="Class-Path" value="${asm.lib}" />
<attribute name="Main-Class" value="ch.usi.dag.dislserver.DiSLServer" />
......@@ -107,13 +104,10 @@
</target>
<target name="package-dislagent-java" depends="compile-agent-java,compile-dynamicbypass,compile-dynamicbypass-afterbootstrap">
<!-- rename after bootstrap class -->
<move file="${build.afterbootstrap}/ch/usi/dag/disl/dynamicbypass/DynamicBypassCheck.class"
tofile="${build.afterbootstrap}/DynamicBypassCheck-AfterBootstrap.class" />
<move file="${build.afterbootstrap}/ch/usi/dag/disl/dynamicbypass/DynamicBypassCheck.class" tofile="${build.afterbootstrap}/DynamicBypassCheck-AfterBootstrap.class" />
<jar basedir="${bin}" destfile="${build}/disl-agent.jar"
includes="ch/usi/dag/dislagent/**,ch/usi/dag/disl/dynamicbypass/**">
<jar basedir="${bin}" destfile="${build}/disl-agent.jar" includes="ch/usi/dag/dislagent/**,ch/usi/dag/disl/dynamicbypass/**">
<manifest>
<attribute name="Premain-Class" value="ch.usi.dag.dislagent.DiSLAgent" />
......@@ -130,8 +124,7 @@
</target>
<target name="package-reserver" depends="compile-reserver">
<jar basedir="${bin}" destfile="${build}/dislre-server.jar"
includes="ch/usi/dag/dislreserver/**">
<jar basedir="${bin}" destfile="${build}/dislre-server.jar" includes="ch/usi/dag/dislreserver/**">
<manifest>
<attribute name="Class-Path" value="${asm.lib}" />
<attribute name="Main-Class" value="ch.usi.dag.dislreserver.DiSLREServer" />
......@@ -141,8 +134,7 @@
</target>
<target name="package-redispatch" depends="compile-redispatch">
<jar basedir="${bin}" destfile="${build}/dislre-dispatch.jar"
includes="ch/usi/dag/dislre/**">
<jar basedir="${bin}" destfile="${build}/dislre-dispatch.jar" includes="ch/usi/dag/dislre/**">
</jar>
</target>
......@@ -157,11 +149,8 @@
</jar>
</target>
<target name="eclipse-dynamicbypass" depends="compile-dynamicbypass"
description="creates support library for DiSL development under eclipse">
<jar basedir="${bin}" destfile="${build}/eclipse-dynamicbypass.jar"
includes="ch/usi/dag/disl/dynamicbypass/" />
<target name="eclipse-dynamicbypass" depends="compile-dynamicbypass" description="creates support library for DiSL development under eclipse">
<jar basedir="${bin}" destfile="${build}/eclipse-dynamicbypass.jar" includes="ch/usi/dag/disl/dynamicbypass/" />
</target>
<target name="eclipse" depends="eclipse-dynamicbypass,eclipse-agent" />
......@@ -191,43 +180,77 @@
<exec executable="make" dir="${src.reagent}">
<arg value="clean" />
</exec>
<ant antfile="example/build.xml" target="clean" useNativeBasedir="true" />
</target>
<target name="javadoc" depends="package,eclipse">
<javadoc access="public" author="true" overview="doc/overview.html" classpath="build/eclipse-dynamicbypass.jar:${asm.path}" destdir="doc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="ch.usi.dag.disl.guardcontext,ch.usi.dag.disl.staticcontext,ch.usi.dag.disl.dynamiccontext,ch.usi.dag.disl.classcontext,ch.usi.dag.disl.marker,ch.usi.dag.disl.transformer,ch.usi.dag.disl.processorcontext,ch.usi.dag.disl.annotation" source="1.7" sourcefiles="src/ch/usi/dag/disl/scope/Scope.java,src/ch/usi/dag/disl/scope/ScopeImpl.java,src/ch/usi/dag/disl/DiSL.java,src/ch/usi/dag/disl/snippet/Shadow.java" sourcepath="src-test:src-agent-java:src" splitindex="true" use="true" version="true"/>
<javadoc access="public" author="true" overview="doc/overview.html" classpath="build/eclipse-dynamicbypass.jar:${asm.path}" destdir="doc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="ch.usi.dag.disl.guardcontext,ch.usi.dag.disl.staticcontext,ch.usi.dag.disl.dynamiccontext,ch.usi.dag.disl.classcontext,ch.usi.dag.disl.marker,ch.usi.dag.disl.transformer,ch.usi.dag.disl.processorcontext,ch.usi.dag.disl.annotation" source="1.7" sourcefiles="src/ch/usi/dag/disl/scope/Scope.java,src/ch/usi/dag/disl/scope/ScopeImpl.java,src/ch/usi/dag/disl/DiSL.java,src/ch/usi/dag/disl/snippet/Shadow.java" sourcepath="src-test:src-agent-java:src" splitindex="true" use="true" version="true" />
</target>
<property name="dist.executables" value="
**/find.sh,
**/find.bat" />
<property name="dist.excludes" value="
${bin}/**,
${build}/**,
${build.test}/**,
${dist}/**,
.settings/**,
.classpath,
.project,
${dist}/**,
bin/**,
build/**,
src-test/**,
eclipse.**,
test.py,
run**" />
<target name="dist-tar">
<mkdir dir="${dist}" />
<tar
destfile="${dist}/disl-src-${disl.version}.tar"
basedir="."
excludes="${dist.excludes}" />
<tar destfile="${dist}/disl-src-${disl.version}.tar">
<tarfileset dir="." excludes="${dist.excludes}, ${dist.executables}" />
<tarfileset dir="." includes="${dist.executables}" filemode="755" />
</tar>
</target>
<target name="dist-zip">
<mkdir dir="${dist}" />
<zip
destfile="${dist}/disl-src-${disl.version}.zip"
basedir="."
excludes="${dist.excludes}" />
<zip destfile="${dist}/disl-src-${disl.version}.zip">
<zipfileset dir="." excludes="${dist.excludes}, ${dist.executables}" />
<zipfileset dir="." includes="${dist.executables}" filemode="755" />
</zip>
</target>
<!-- *** test instrumentaion package *** -->
<!-- package suite test application -->
<target name="package-test2-app">
<jar jarfile="${build.test}/disl-app-${tmp.test2.name}.jar" basedir="${bin}" includes="${tmp.test2.path}/app/**">
<manifest>
<attribute name="Main-Class" value="${tmp.test2.pkg}.app.TargetClass" />
</manifest>
</jar>
</target>
<!-- package suite test instrumentaton with default DiSLClass -->
<target name="package-test2-instr-nomanifest">
<jar jarfile="${build.test}/disl-instr-${tmp.test2.name}.jar" basedir="${bin}" includes="${tmp.test2.path}/instr/**" excludes="${tmp.test2.path}/instr/MANIFEST.MF">
<manifest>
<attribute name="DiSL-Classes" value="${tmp.test2.path}.instr.DiSLClass" />
</manifest>
</jar>
</target>
<!-- package suite test instrumentaton with manifest file -->
<target name="package-test2-instr-manifest">
<jar jarfile="${build.test}/disl-instr-${tmp.test2.name}.jar" basedir="${bin}" includes="${tmp.test2.path}/instr/**" excludes="${tmp.test2.path}/instr/MANIFEST.MF" manifest="${tmp.test2.manifest}">
</jar>
</target>
<!-- iterates over files and runs targets on them, dir is passed as property -->
<!-- property passed in the targets must be used directly -->
<!--
currently used ant-contrib instead
javascript requires js.jar and bsf.jar in lower versions of jdk and ant
<scriptdef name="package-test2-script" language="javascript">
<element name="dirset" type="dirset" />
<![CDATA[
......@@ -255,38 +278,8 @@
}
}
]]>
</scriptdef>
</scriptdef>
<target name="package-test2-app">
<jar jarfile="${build.test}/disl-app-${tmp.test2.name}.jar"
basedir="${bin}"
includes="${tmp.test2.path}/app/**">
<manifest>
<attribute name="Main-Class" value="${tmp.test2.pkg}.app.TargetClass" />
</manifest>
</jar>
</target>
<target name="package-test2-instr-nomanifest">
<jar jarfile="${build.test}/disl-instr-${tmp.test2.name}.jar"
basedir="${bin}"
includes="${tmp.test2.path}/instr/**"
excludes="${tmp.test2.path}/instr/MANIFEST.MF">
<manifest>
<attribute name="DiSL-Classes" value="${tmp.test2.path}.instr.DiSLClass" />
</manifest>
</jar>
</target>
<target name="package-test2-instr-manifest">
<jar jarfile="${build.test}/disl-instr-${tmp.test2.name}.jar"
basedir="${bin}"
includes="${tmp.test2.path}/instr/**"
excludes="${tmp.test2.path}/instr/MANIFEST.MF"
manifest="${tmp.test2.manifest}">
</jar>
</target>
<target name="package-test2">
<mkdir dir="${build.test}"/>
<package-test2-script>
......@@ -295,8 +288,52 @@
</dirset>
</package-test2-script>
</target>
-->
<!-- build single suite test -->
<target name="package-test2-single">
<antcall target="package-test2-app" />
<if>
<available file="${tmp.test2.manifest}" />
<then>
<antcall target="package-test2-instr-manifest" />
</then>
<else>
<antcall target="package-test2-instr-nomanifest" />
</else>
</if>
</target>
<target name="copy-test2">
<!-- build jars for every directory in suite tests -->
<target name="package-test2">
<taskdef resource="${ant-contrib.resource}">
<classpath>
<pathelement location="${ant-contrib.path}" />
</classpath>
</taskdef>
<mkdir dir="${build.test}" />
<for param="file">
<path>
<dirset dir="src-test/ch/usi/dag/disl/test2/suite/">
<include name="*" />
</dirset>
</path>
<sequential>
<propertyregex override="yes" property="basename" input="@{file}" regexp="(.*)/(.*)" replace="\2" />
<antcall target="package-test2-single">
<param name="tmp.test2.name" value="${basename}" />
<param name="tmp.test2.path" value="ch/usi/dag/disl/test2/suite/${basename}" />
<param name="tmp.test2.pkg" value="ch.usi.dag.disl.test2.suite.${basename}" />
<param name="tmp.test2.manifest" value="${src.test}/ch/usi/dag/disl/test2/suite/${basename}/instr/MANIFEST.MF" />
</antcall>
</sequential>
</for>
</target>
<!-- copy resource files needed to run the tests from source to bin directory -->
<target name="copy-test2-resource">
<copy todir="${bin}">
<fileset dir="${src.test}">
<include name="**/*.resource" />
......@@ -304,16 +341,14 @@
</copy>
</target>
<target name="prepare-test2" depends="prepare-all, copy-test2, package-test2" />
<target name="prepare-test2" depends="prepare-all, copy-test2-resource, package-test2" />
<!-- run all junit and junit wrapped suite tests -->
<target name="test2" depends="prepare-test2">
<junit
haltonfailure="no"
haltonerror="no"
failureproperty="junit.failure">
<junit haltonfailure="no" haltonerror="no" failureproperty="junit.failure">
<classpath refid="classpath" />
<formatter type="brief" usefile="false" />
<!-- allows properties starting with "-Ddisl." to be passed to tests -->
<!-- allow properties starting with "-Ddisl." to be passed to tests -->
<syspropertyset>
<propertyref prefix="disl" />
</syspropertyset>
......@@ -325,28 +360,23 @@
</batchtest>
</junit>
</target>
<target
name="report-test2-name"
depends="check-test2-name"
unless="test2.name.set">
<target name="report-test2-name" depends="check-test2-name" unless="test2.name.set">
<fail message="Property test2.name is not set. Set it using -Dtest2.name=value" />
</target>
<target name="check-test2-name">
<condition property="test2.name.set">
<isset property="test2.name"/>
<isset property="test2.name" />
</condition>
</target>
<!-- run single suite test -->
<target name="suite-test2" depends="prepare-test2, report-test2-name">
<junit
haltonfailure="no"
haltonerror="no"
failureproperty="junit.failure">
<junit haltonfailure="no" haltonerror="no" failureproperty="junit.failure">
<classpath refid="classpath" />
<formatter type="brief" usefile="false" />
<!-- allows properties starting with "-Ddisl." to be passed to tests -->
<!-- allow properties starting with "-Ddisl." to be passed to tests -->
<syspropertyset>
<propertyref prefix="disl" />
</syspropertyset>
......@@ -357,10 +387,10 @@
</batchtest>
</junit>
</target>
<target name="check-test-property">
<condition property="test.set">
<isset property="test.name"/>
<isset property="test.name" />
</condition>
</target>
......@@ -368,26 +398,18 @@
<fail message="Property test.name is not set. Set it using -Dtest.name=value" />
</target>
<property name="test.path" value="ch/usi/dag/disl/test/${test.name}"/>
<property name="test.path" value="ch/usi/dag/disl/test/${test.name}" />
<target name="package-test" depends="report-missing-property,prepare-all" description="create instrumentation package for specified test">
<mkdir dir="${build}"/>
<jar jarfile="${build}/${instr.jar.name}.jar"
basedir="${bin}"
includes="${test.gath}/**"
excludes="${test.path}/TargetClass*.class ${test.path}/MANIFEST.MF"
manifest="${src.test}/${test.path}/MANIFEST.MF">
<mkdir dir="${build}" />
<jar jarfile="${build}/${instr.jar.name}" basedir="${bin}" includes="${test.path}/**" excludes="${test.path}/TargetClass*.class ${test.path}/MANIFEST.MF" manifest="${src.test}/${test.path}/MANIFEST.MF">
</jar>
</target>
<!-- unsafe for missing dependencies -->
<target name="unsafe-package-test" description="create instrumentation package for specified test">
<mkdir dir="${build}"/>
<jar jarfile="${build}/disl-instr-${test.name}.jar"
basedir="${bin}"
includes="${test.path}/**"
excludes="${test.path}/TargetClass*.class ${test.path}/MANIFEST.MF"
manifest="${src.test}/${test.path}/MANIFEST.MF">
<mkdir dir="${build}" />
<jar jarfile="${build}/disl-instr-${test.name}.jar" basedir="${bin}" includes="${test.path}/**" excludes="${test.path}/TargetClass*.class ${test.path}/MANIFEST.MF" manifest="${src.test}/${test.path}/MANIFEST.MF">
</jar>
</target>
......
================================================================================
= DiSL SETUP EXAMPLE
================================================================================
These simple examples illustrates a basic instrumentation setup. It shows, how
the instrumentation should be packaged and contains a scripts that should ease
running DiSL together with your program.
......@@ -109,7 +108,6 @@ enables more detailed settings. To learn more about this run "./disl.py -h"
================================================================================
= NOTE
================================================================================
If you want to use "disl.py" to run your application, don't forget to set
"DISL_HOME" variable correctly or it can be specified to "disl.py" at command
line or inside the script as a default value.
......@@ -118,12 +116,9 @@ line or inside the script as a default value.
================================================================================
= NOTE
================================================================================
If you want to include use some library in your instrumentation you should
insert it directly to the instrumentation jar using jarjar.
http://code.google.com/p/jarjar/
Other option is to provide library's classpath to the "disl.py" utility.
<project name="disl-example" default="clean" basedir=".">
<project name="disl-example" default="run" basedir=".">
<target name="clean">
<ant antfile="dynamic/build.xml" target="clean" useNativeBasedir="true" />
<ant antfile="guard/build.xml" target="clean" useNativeBasedir="true" />
......@@ -7,4 +7,13 @@
<ant antfile="smoke/build.xml" target="clean" useNativeBasedir="true" />
<ant antfile="static/build.xml" target="clean" useNativeBasedir="true" />
</target>
<target name="run">
<ant antfile="dynamic/build.xml" target="run" useNativeBasedir="true" />
<ant antfile="guard/build.xml" target="run" useNativeBasedir="true" />
<ant antfile="marker/build.xml" target="run" useNativeBasedir="true" />
<ant antfile="scope/build.xml" target="run" useNativeBasedir="true" />
<ant antfile="smoke/build.xml" target="run" useNativeBasedir="true" />
<ant antfile="static/build.xml" target="run" useNativeBasedir="true" />
</target>
</project>
import ch.usi.dag.disl.annotation.After;
import ch.usi.dag.disl.annotation.AfterReturning;
import ch.usi.dag.disl.annotation.Before;
import ch.usi.dag.disl.marker.MethodInvocationMarker;
public class DiSLClass {
......
import java.util.LinkedList;
import java.util.List;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.InsnList;
import org.objectweb.asm.tree.MethodInsnNode;
import org.objectweb.asm.tree.MethodNode;
import ch.usi.dag.disl.marker.AbstractMarker;
import ch.usi.dag.disl.marker.AbstractDWRMarker;
/**
* Sets the region on every method invocation instruction.
*
*/
public class MethodInvocationMarker extends AbstractDWRMarker {
public List<MarkedRegion> markWithDefaultWeavingReg(MethodNode method) {
List<MarkedRegion> regions = new LinkedList<MarkedRegion>();
// traverse all instructions
InsnList instructions = method.instructions;
for (AbstractInsnNode instruction : instructions.toArray()) {
// check for method invocation instructions
if (instruction instanceof MethodInsnNode) {
// add region containing one instruction (method invocation)
regions.add(new MarkedRegion(instruction, instruction));
}
}
return regions;
}
}
import ch.usi.dag.disl.annotation.After;
import ch.usi.dag.disl.annotation.Before;
import ch.usi.dag.disl.marker.BodyMarker;
import ch.usi.dag.disl.staticcontext.DumbLoopContext;
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
public class DiSLClass {
......@@ -19,4 +18,4 @@ public class DiSLClass {
System.out.printf("disl: %s had no loop\n", msc.thisMethodName());
}
}
}
\ No newline at end of file
}
import ch.usi.dag.disl.annotation.GuardMethod;
import ch.usi.dag.disl.staticcontext.DumbLoopContext;
public class DumbLoopGuard {
......
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2003 Ant-Contrib project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The name Ant-Contrib must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact
* ant-contrib-developers@lists.sourceforge.net.
*
* 5. Products derived from this software may not be called "Ant-Contrib"
* nor may "Ant-Contrib" appear in their names without prior written
* permission of the Ant-Contrib project.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*/
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
BSD License
Copyright (c) 2000-2006, www.hamcrest.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer. Redistributions in binary form must reproduce
the above copyright notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
Neither the name of Hamcrest nor the names of its contributors may be used to endorse
or promote products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
JUnit
Eclipse Public License - v 1.0