You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/06/17 21:01:57 UTC
svn commit: r785797 - in
/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview:
pom.xml src/main/java/org/apache/kato/katoview/KatoView.java
Author: spoole
Date: Wed Jun 17 21:01:56 2009
New Revision: 785797
URL: http://svn.apache.org/viewvc?rev=785797&view=rev
Log:
added packaging step for katoview. creates a single executable jar
Modified:
incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/pom.xml
incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/KatoView.java
Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/pom.xml?rev=785797&r1=785796&r2=785797&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/pom.xml (original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/pom.xml Wed Jun 17 21:01:56 2009
@@ -16,6 +16,16 @@
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
+ <groupId>org.apache.kato</groupId>
+ <artifactId>kato.jvmti</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.kato</groupId>
+ <artifactId>kato.hprof.api</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
@@ -29,5 +39,34 @@
<scope>compile</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-2</version>
+ <executions>
+ <execution>
+ <id>create-executable-jar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>
+ jar-with-dependencies
+ </descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>org.apache.kato.katoview.KatoView</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/KatoView.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/KatoView.java?rev=785797&r1=785796&r2=785797&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/KatoView.java (original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/KatoView.java Wed Jun 17 21:01:56 2009
@@ -13,6 +13,8 @@
******************************************************************************/
package org.apache.kato.katoview;
+import org.apache.kato.FactoryRegistry;
+
public class KatoView {
@@ -22,6 +24,8 @@
* @param args
*/
public static void main(String[] args) {
+ FactoryRegistry.getDefaultRegistry().addFactory(new org.apache.kato.hprof.image.ImageFactoryImpl());
+ FactoryRegistry.getDefaultRegistry().addFactory(new org.apache.kato.jvmti.process.ImageFactoryImpl());
KatoView katoView = new KatoView();
katoView.session = new Session(args);