Copyright 2004-2006 Haruaki Tamada
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Following libraries are required for executing AddTracer.
Following libraries are required for executing AddTracer in other platform.
AddTracer does not support class file format of Java 5.
Unfortunately, the BCEL which is library used in AddTracer has some bugs. So, injecting tracers would be failed when target class contains switch instruction. The patch of this page fixes this problem.
Separate useful libraries from this project (xmlcli, bcul)
Change package name from jp.ac.aist_nara.se.tama.tracer to jp.naist.se.addtracer. And groupId of this product is ``jp.naist.se,'' and artifactId of addtracer is ``addtracer.''
Add new class and configuration file for using of DonQuixote plugin.
Rewrite web page of addtracer in apt format.
Code refactoring.
Bug fixed. Prefix is duplicated such as '0x0x' when printing assignment tarcer in beginnng of method (hex format)
AddTracer 2.x project is managed by Maven 2. So binary install is very easy. Save following xml files as ``pom.xml'' in a some directory.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>jp.naist.se</groupId>
<artifactId>addtracer-installer</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<name>addtracer-installer</name>
<url>http://se.naist.jp/addtracer/</url>
<repositories>
<repository>
<id>maven.cafebabe.jp</id>
<name>cafebabe Maven2 Repository</name>
<url>http://cafebabe.jp/repository/maven2</url>
</repository>
<repository>
<id>se.naist.jp</id>
<name>Maven2 Repository of SE Lab., NAIST</name>
<url>http://se.naist.jp/maven2</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>jp.naist.se</groupId>
<artifactId>addtracer</artifactId>
<version>2.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dependency-maven-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Then, simply type:
$ mvn package
Maven will get binary of addtracer and required libraries from Internet and copy them to target directory.
If you build from source files, unpack archive, which is downloaded above link. Next, change directory which named ``addtracer-2.X'' and simply type:
$ mvn package
Then, maven will get required libraries and compile the AddTracer. The target directory will contain the compiled class files (insides a classes directory) as well as a addtracer-2.X.jar file, where 2.X is the current version number.
AddTracer runs on a variety of platform that have installed the Java Virtual Machine. Everything required to build AddTracer comes by executing Maven. However, you will need to install Maven, which is Apache project and can be found here.
To make building AddTracer, first, unpack archive, which is downloaded above link. Next, change directory which named `addtracer-1.X' and simply type:
$ maven jar
Then, maven will get required libraries and compile the AddTracer. The target directory will contain the compiled class files (insides a classes directory) as well as a addtracer-1.X.jar file, where 1.X is the current version number.