Skip to content

Commit cefeda9

Browse files
committed
Different archives for static and dynamic version
1 parent 20d0848 commit cefeda9

File tree

4 files changed

+40
-6
lines changed

4 files changed

+40
-6
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The java-callgraph package is build with maven. Install maven and do:
1717
mvn install
1818
</code>
1919

20-
This will produce a `target` directory with two jars
20+
This will produce a `target` directory with two executable jars:
2121

2222
#### Examples
2323

@@ -35,6 +35,10 @@ java
3535
-jar dacapo-9.12-bach.jar batik -s small
3636
</code>
3737

38+
<code>
39+
java -Xbootclasspath:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:jar/lucene-core-2.4.jar:jar/luindex.jar -javaagent:target/javacg-0.1-SNAPSHOT-dycg-agent.jar="incl=org.apache.lucene.*;" -jar dacapo-9.12-bach.jar luindex -s small
40+
</code>
41+
3842
#### Known Restrictions
3943

4044
* The static call graph generator does not account for methods invoked via

assembly.xml renamed to assembly-dyn.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<fileSets>
2222
<fileSet>
2323
<includes>
24-
<include>**/*.class</include>
24+
<include>gr/gousiosg/javacg/dyn/*.class</include>
2525
</includes>
2626
<directory>target/classes</directory>
2727
<outputDirectory>/</outputDirectory>

assembly-st.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<assembly
2+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
5+
6+
<id>static</id>
7+
<formats>
8+
<format>jar</format>
9+
</formats>
10+
<includeBaseDirectory>false</includeBaseDirectory>
11+
12+
<dependencySets>
13+
<dependencySet>
14+
<unpack>true</unpack>
15+
<includes>
16+
<include>org.apache.bcel:bcel</include>
17+
</includes>
18+
<scope>provided</scope>
19+
</dependencySet>
20+
</dependencySets>
21+
<fileSets>
22+
<fileSet>
23+
<includes>
24+
<include>gr/gousiosg/javacg/stat/*.class</include>
25+
</includes>
26+
<directory>target/classes</directory>
27+
<outputDirectory>/</outputDirectory>
28+
</fileSet>
29+
</fileSets>
30+
</assembly>

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<groupId>org.apache.bcel</groupId>
1919
<artifactId>bcel</artifactId>
2020
<version>5.2</version>
21-
<scope>compile</scope>
21+
<scope>provided</scope>
2222
</dependency>
2323
<dependency>
2424
<groupId>javassist</groupId>
@@ -35,12 +35,14 @@
3535
<version>2.2.1</version>
3636
<configuration>
3737
<descriptors>
38-
<descriptor>assembly.xml</descriptor>
38+
<descriptor>assembly-dyn.xml</descriptor>
39+
<descriptor>assembly-st.xml</descriptor>
3940
</descriptors>
4041
<archive>
4142
<manifestEntries>
4243
<Can-Redefine-Classes>true</Can-Redefine-Classes>
4344
<Premain-Class>gr.gousiosg.javacg.dyn.Instrumenter</Premain-Class>
45+
<Main-Class>gr.gousiosg.javacg.stat.JCallGraph</Main-Class>
4446
</manifestEntries>
4547
</archive>
4648
</configuration>
@@ -62,8 +64,6 @@
6264
<target>1.5</target>
6365
</configuration>
6466
</plugin>
65-
6667
</plugins>
67-
6868
</build>
6969
</project>

0 commit comments

Comments
 (0)