Commit c5dbe20f authored by Lukáš Marek's avatar Lukáš Marek

added DiSL ant build file

added jborat v0.2 jars
stub for testing example
removed unnecessary interface
parent f32604dd
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="lib/asm-all-3.3.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="lib/asm-all-3.3.jar"/>
<classpathentry kind="lib" path="lib/jborat-agent.jar"/>
<classpathentry kind="lib" path="lib/jborat-runtime.jar"/>
<classpathentry kind="lib" path="lib/jborat.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
asm.path=lib/asm-all-3.3.jar
jborat.path=lib/jborat.jar
<project name="disl" default="package" basedir=".">
<property file="build.properties"/>
<property file="disl.version"/>
<path id="buildpath">
<pathelement location="${asm.path}"/>
<pathelement location="${jborat.path}"/>
</path>
<target name="package" depends="compile">
<mkdir dir="build"/>
<jar basedir="bin" destfile="build/disl-${disl.version}.jar"/>
</target>
<target name="compile">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" debug="true">
<classpath refid="buildpath"/>
</javac>
</target>
<target name="clean">
<delete dir="bin"/>
<delete dir="build"/>
</target>
</project>
disl.version=unspec
\ No newline at end of file
File added
package ch.usi.dag.jborat.agent;
import org.objectweb.asm.tree.ClassNode;
// TODO this interface should be replaced by jborat jar
public interface Instrumentation {
public void instrument(ClassNode clazz );
}
<project name="disl-test" default="package" basedir=".">
<property file="../disl.version"/>
<path id="buildpath">
<pathelement location="../build/disl-${disl.version}"/>
</path>
<target name="compile">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" debug="true">
<classpath refid="buildpath"/>
</javac>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
</project>
# /bin/sh
java -javaagent:../lib/jborat-agent.jar -Dch.usi.dag.jborat.liblist="conf/lib.lst" -Dch.usi.dag.jborat.instrumentation="ch.usi.dag.sample.MyInstrumentation" -Dch.usi.dag.jborat.codemergerList="conf/codemerger.lst" -Dch.usi.dag.jborat.uninstrumented="uninstrumented" -Dch.usi.dag.jborat.instrumented="instrumented" -Xbootclasspath/p:../lib/Thread_jborat.jar:../lib/jborat-runtime.jar
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment