incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r832705 - in /incubator/kato/trunk/org.apache.kato/kato.distro/src/main: assembly/bindist.xml scripts/katoview.sh
Date Wed, 04 Nov 2009 10:51:54 GMT
Author: monteith
Date: Wed Nov  4 10:51:52 2009
New Revision: 832705

URL: http://svn.apache.org/viewvc?rev=832705&view=rev
Log:
Create katoview.sh script.

Modified:
    incubator/kato/trunk/org.apache.kato/kato.distro/src/main/assembly/bindist.xml
    incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/katoview.sh

Modified: incubator/kato/trunk/org.apache.kato/kato.distro/src/main/assembly/bindist.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.distro/src/main/assembly/bindist.xml?rev=832705&r1=832704&r2=832705&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.distro/src/main/assembly/bindist.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.distro/src/main/assembly/bindist.xml Wed Nov
 4 10:51:52 2009
@@ -1,4 +1,23 @@
 <?xml version="1.0"?>
+<!--
+
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you 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.
+-->
 <assembly>
   <id>bin</id>
   <formats>
@@ -7,14 +26,32 @@
   </formats>
   <baseDirectory>kato-${project.version}</baseDirectory>
   <fileSets>
+
+    <!--
+        Place readme into base directory, including other docs.
+    -->
     <fileSet>
       <directory>src/main/readme/</directory>
       <outputDirectory>/</outputDirectory>
     </fileSet>
+
+    <!--
+        Copies scripts held within our directory and places into a bin
+        directory. Sets the permissions to executable and filters variables.
+        The filtering converts ${project.version} to this release name so that
+        the jar files correctly located, as they contain this name.
+    -->
     <fileSet>
       <directory>src/main/scripts/</directory>
-      <outputDirectory>/</outputDirectory>
+      <outputDirectory>/bin</outputDirectory>
+      <fileMode>755</fileMode>
+      <filtered>true</filtered>
     </fileSet>
+
+    <!--
+        Places the disclaimer, licence and notice files
+        from the project directory into the binary base directory.
+    -->
     <fileSet>
         <directory>..</directory>
         <outputDirectory>/</outputDirectory>
@@ -23,11 +60,31 @@
             <include>NOTICE</include>
             <include>LICENSE</include>
         </includes>
+      <fileMode>644</fileMode>
     </fileSet>
+
   </fileSets>
+
+  <!--
+        Pulls out the specification/API guide and places it in the
+        docs directory.
+    -->
+  <files>
+     <file>
+       <source>../kato.docs/target/docbkx/pdf/spec.pdf</source>
+       <outputDirectory>docs</outputDirectory>
+       <fileMode>644</fileMode>
+       </file>
+  </files>
+
+  <!--
+    Copies jar files from our dependencies into the lib directory.
+    We filter out everything except the kato packages (ours) and
+    the common* packaged, which are needed by katoview.
+    -->
   <dependencySets>
     <dependencySet>
-      <outputDirectory>jars</outputDirectory>
+      <outputDirectory>lib</outputDirectory>
       <includes>
       	<include>kato*</include>
       	<include>common*</include>

Modified: incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/katoview.sh
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/katoview.sh?rev=832705&r1=832704&r2=832705&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/katoview.sh (original)
+++ incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/katoview.sh Wed Nov
 4 10:51:52 2009
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+##########################################################################
+#
+# 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.
+#
+##########################################################################
+#
+# KatoView Launcher script
+# Requires JAVA_HOME to be set to the location of an installed JDK.
+# 
+# Usage:
+#   katoview.sh [ -verbose ] -core <core_file> 
+#
+#
+DIR=`dirname $0`
+JARS=$DIR/../lib
+
+$JAVA_HOME/jre/bin/java -classpath $JARS/kato.api-${project.version}.jar:$JARS/kato.cjvmti-${project.version}.jar:$JARS/kato.tools.katoview-${project.version}.jar:$JARS/kato.hprof.api-${project.version}.jar:$JARS/kato.hprof.reader-${project.version}.jar
\
+org.apache.kato.katoview.KatoView $@
+



Mime
View raw message