Skip to content

Commit

Permalink
Merge pull request #22 from manandbytes/topic/asm4
Browse files Browse the repository at this point in the history
Enable Maven/Tycho build for ASM4.
  • Loading branch information
marchof committed Sep 17, 2012
2 parents 32e3a05 + 654f9bf commit ae6d095
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
18 changes: 7 additions & 11 deletions org.jacoco.build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<tycho.version>0.13.0</tycho.version>

<!-- Dependencies versions -->
<asm.version>3.3.1</asm.version>
<asm.version>4.0</asm.version>
<ant.version>1.7.0</ant.version>
<junit.version>4.8.2</junit.version>

Expand Down Expand Up @@ -192,13 +192,8 @@
</dependency>
<!-- Third-party dependencies -->
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm-commons</artifactId>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -372,6 +367,10 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down Expand Up @@ -427,9 +426,6 @@
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<resolver>p2</resolver>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
8 changes: 2 additions & 6 deletions org.jacoco.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
<!-- Note that Tycho doesn't use those dependencies, but we need to declare them for consumers -->
<dependencies>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm-commons</artifactId>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.MethodNode;
import org.objectweb.asm.tree.TryCatchBlockNode;

/**
* Method visitor to collect flow related information about the {@link Label}s
Expand All @@ -36,7 +37,7 @@ public static void markLabels(final MethodNode method) {
final MethodVisitor lfa = new LabelFlowAnalyzer();
if (method.tryCatchBlocks != null) {
for (int i = method.tryCatchBlocks.size(); --i >= 0;) {
method.tryCatchBlocks.get(i).accept(lfa);
((TryCatchBlockNode) method.tryCatchBlocks.get(i)).accept(lfa);
}
}
method.instructions.accept(lfa);
Expand Down
7 changes: 7 additions & 0 deletions org.jacoco.examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>

Expand Down
4 changes: 4 additions & 0 deletions org.jacoco.report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<groupId>${project.groupId}</groupId>
<artifactId>org.jacoco.core</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit ae6d095

Please sign in to comment.