incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r819548 - in /incubator/kato/trunk/org.apache.kato/kato.native: ./ kato.native.cjvmti/linux-x86/ kato.native.cjvmti/linux-x86/.settings/ kato.native.cjvmti/win32/ kato.native.cjvmti/win32/.settings/ kato.native.vmapi/ kato.native.vmapi/.set...
Date Mon, 28 Sep 2009 14:23:33 GMT
Author: spoole
Date: Mon Sep 28 14:23:32 2009
New Revision: 819548

URL: http://svn.apache.org/viewvc?rev=819548&view=rev
Log:
initial srop of native library to support vm side api

Added:
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.classpath
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.project
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.eclipse.jdt.core.prefs
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.maven.ide.eclipse.prefs
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.classpath
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.project
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.eclipse.jdt.core.prefs
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.maven.ide.eclipse.prefs
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.classpath
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.project
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.eclipse.jdt.core.prefs
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.maven.ide.eclipse.prefs
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/javah/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/javah/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/include/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/resources/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/main/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/main/java/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/main/resources/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/resources/
Modified:
    incubator/kato/trunk/org.apache.kato/kato.native/   (props changed)
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.native/pom.xml

Propchange: incubator/kato/trunk/org.apache.kato/kato.native/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 28 14:23:32 2009
@@ -0,0 +1 @@
+target

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.classpath
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.classpath?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.classpath
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.classpath
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.project
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.project?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.project
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.project
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>libcjvmti</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+	</natures>
+</projectDescription>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.eclipse.jdt.core.prefs?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.eclipse.jdt.core.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.eclipse.jdt.core.prefs
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,5 @@
+#Thu Sep 24 21:26:51 BST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.source=1.3

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.maven.ide.eclipse.prefs?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.maven.ide.eclipse.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/linux-x86/.settings/org.maven.ide.eclipse.prefs
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,9 @@
+#Thu Sep 24 21:26:32 BST 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.classpath
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.classpath?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.classpath (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.classpath Mon
Sep 28 14:23:32 2009
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.project
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.project?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.project (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.project Mon
Sep 28 14:23:32 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cjvmti</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+	</natures>
+</projectDescription>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.eclipse.jdt.core.prefs?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.eclipse.jdt.core.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.eclipse.jdt.core.prefs
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,5 @@
+#Thu Sep 24 21:26:42 BST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.source=1.3

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.maven.ide.eclipse.prefs?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.maven.ide.eclipse.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/.settings/org.maven.ide.eclipse.prefs
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,9 @@
+#Thu Sep 24 21:26:32 BST 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Modified: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/pom.xml?rev=819548&r1=819547&r2=819548&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/pom.xml Mon
Sep 28 14:23:32 2009
@@ -1,11 +1,11 @@
 <project>
 
   <modelVersion>4.0.0</modelVersion>
-  <description>Create Windows 32bit version of libcjvmti library</description>
+  <description>Create Windows 32bit version of Kato VM native library</description>
 
   <parent>
     <groupId>org.apache.kato</groupId>
-    <artifactId>kato.native.cjvmti</artifactId>
+    <artifactId>kato.native.vmapi</artifactId>
     <version>0.0.1-SNAPSHOT</version>
   </parent>
 
@@ -14,16 +14,14 @@
   
     
     
-   <artifactId>cjvmti</artifactId>
+   <artifactId>katovmapi</artifactId>
   
-  <name>Win32 Version of CJVMTI Native Library</name>
+  <name>Win32 Version of Kato VM Native Library</name>
   
   <packaging>dll</packaging>
   
   
   
-  
-  
   <build>
     <plugins>
       <plugin>
@@ -42,16 +40,12 @@
             <source>
               <directory>${native.source.dir}</directory>
               <fileNames>
-                <fileName>cjvmti.c</fileName>
-                <fileName>addClass.c</fileName>
-                <fileName>addField.c</fileName>
-                <fileName>addObject.c</fileName>
-                <fileName>addThreads.c</fileName>
-                <fileName>queue.c</fileName>
+                <fileName>katovmapi.c</fileName>
               </fileNames>
             </source>  
             <source>
               <directory>${native.source.dir}/include</directory>
+              <directory>${javah.source.dir}</directory>
             </source>            
           </sources>
             
@@ -60,13 +54,37 @@
             <linkerStartOption>/DLL</linkerStartOption>
           </linkerStartOptions>
           
-          <linkerSecondaryOutputExtensions >lib</linkerSecondaryOutputExtensions
>
           
           
         </configuration>
         
       </plugin>
 
+	<plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.4</version>
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${basedir}/../target</outputDirectory>
+              <resources>          
+                <resource>
+                  <directory>${basedir}/target/</directory>
+                  <includes>
+         			 <include>*.dll</include>
+				  </includes>
+                </resource>
+              </resources>              
+            </configuration>            
+          </execution>
+        </executions>
+      </plugin>
+
     </plugins>    
 
   </build>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.classpath
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.classpath?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.classpath (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.classpath Mon Sep
28 14:23:32 2009
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="tests/src/test/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.project
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.project?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.project (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.project Mon Sep 28
14:23:32 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>kato.native.vmapi</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+	</natures>
+</projectDescription>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.eclipse.jdt.core.prefs?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.eclipse.jdt.core.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.eclipse.jdt.core.prefs
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,5 @@
+#Mon Sep 28 11:00:47 BST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.source=1.6

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.maven.ide.eclipse.prefs?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.maven.ide.eclipse.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/.settings/org.maven.ide.eclipse.prefs
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,9 @@
+#Mon Sep 28 11:00:47 BST 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/javah/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/javah/pom.xml?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/javah/pom.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/javah/pom.xml Mon Sep
28 14:23:32 2009
@@ -0,0 +1,59 @@
+<project>
+
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>pom</packaging>
+  <description>Create JNI Stubs</description>
+
+  <parent>
+    <groupId>org.apache.kato</groupId>
+    <artifactId>kato.native.vmapi</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.kato.native</groupId>
+    
+  <artifactId>javah</artifactId>
+  
+  <dependencies>
+   	<dependency>
+   		<groupId>org.apache.kato</groupId>
+   		<artifactId>kato.common</artifactId>
+   		<version>0.0.1-SNAPSHOT</version>
+   	</dependency>
+   </dependencies>
+  
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+  <artifactId>native-maven-plugin</artifactId>
+
+
+        <extensions>true</extensions>   
+         
+         <executions>
+           <execution>
+             <id>javah</id>
+             <phase>generate-sources</phase>
+             <configuration>
+               <classNames>
+                 <className>org.apache.kato.common.DumpTrigger</className>
+                 
+               </classNames>
+             </configuration>
+             <goals>
+               <goal>javah</goal> 
+             </goals>
+           </execution>
+                    
+         </executions>
+        
+      </plugin>
+
+    </plugins>    
+
+  </build>
+  
+  
+</project>

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/pom.xml?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/pom.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/pom.xml Mon Sep 28
14:23:32 2009
@@ -0,0 +1,109 @@
+<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">
+  <parent>
+    <artifactId>kato.native</artifactId>
+    <groupId>org.apache.kato</groupId>
+    <version>0.0.1-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.kato</groupId>
+  <artifactId>kato.native.vmapi</artifactId>
+  <version>0.0.1-SNAPSHOT</version>
+  
+   <packaging>pom</packaging>
+   
+
+    <properties>
+    <native.source.dir>../src/main/native</native.source.dir>
+    <javah.source.dir>../javah/target/native/javah</javah.source.dir>
+   <native.lib>qwerty</native.lib>
+  	
+	</properties>
+    <build>
+    	<plugins>
+    		<plugin>
+    			<groupId>org.codehaus.mojo</groupId>
+    			<artifactId>native-maven-plugin</artifactId>
+    		</plugin>
+    	</plugins>
+    </build>
+  
+  <profiles>
+  
+    <profile>
+      <id>windows-32</id>
+      <activation>
+        <os>
+          <family>windows</family>
+          <arch>x86</arch>
+        </os>
+      </activation>
+      <modules>
+      	<module>javah</module>
+        <module>win32</module>
+        <module>tests</module>
+      </modules>
+    </profile>
+    
+ 	<profile>
+      <id>windows-amd64</id>
+      <activation>
+        <os>
+          <family>windows</family>
+          <arch>amd64</arch>
+        </os>
+      </activation>
+      <modules>
+      	<module>javah</module>
+        <module>win32</module>
+      </modules>
+    </profile>
+
+    <profile>
+      <id>linux-x86</id>
+      <activation>
+        <os>
+          <family>Linux</family>
+          <arch>i386</arch>
+        </os>
+      </activation>
+      <modules>
+      	<module>javah</module>
+        <module>linux-x86</module>
+      </modules>
+    </profile>
+    
+   <profile>
+      <id>aix</id>
+      <activation>
+        <os>
+          <family>unix</family>
+          <arch>ppc</arch>
+        </os>
+      </activation>
+      <modules>
+      	<module>javah</module>
+        <module>aix</module>
+      </modules>
+    </profile>
+    
+    <!-- use this during release:prepare -->
+    <profile>
+      <id>all</id>
+      <activation>
+        <property>
+          <name>platform</name>
+          <value>all</value>
+        </property>
+      </activation>
+      <modules>
+        <module>win32</module>
+        <module>linux-x86</module>
+        <module>aix</module>
+      </modules>
+    </profile>
+    
+  </profiles>
+
+  
+  
+</project>
\ No newline at end of file

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,10 @@
+#include "org_apache_kato_common_DumpTrigger.h"
+
+JNIEXPORT jboolean JNICALL Java_org_apache_kato_common_DumpTrigger_triggerDump
+(JNIEnv *env, jobject obj) {
+
+	printf("\nCalled...\n");
+}
+
+
+

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml Mon Sep
28 14:23:32 2009
@@ -0,0 +1,50 @@
+<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">
+  <parent>
+    <groupId>org.apache.kato</groupId>
+    <artifactId>kato.native.vmapi</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.kato</groupId>
+  <artifactId>kato.native.vmapi.tests</artifactId>
+  <version>0.0.1-SNAPSHOT</version>
+   <dependencies>
+   <dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>3.8.1</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.common</artifactId>
+			<version>0.0.1-SNAPSHOT</version>
+			<scope>test</scope>
+		</dependency>
+   </dependencies>
+   
+   <properties>
+   	<foo>${basedir}/../target</foo>
+	</properties>
+   <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.4.2</version>
+        <configuration>
+          <systemProperties>
+            <property>
+              <name>libloc</name>
+              <value>${foo}</value> 
+            </property>
+          </systemProperties>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+   
+
+    
+  
+</project>
\ No newline at end of file

Added: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java?rev=819548&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
Mon Sep 28 14:23:32 2009
@@ -0,0 +1,28 @@
+package test.apache.kato.vmapi;
+
+import java.io.File;
+
+import org.apache.kato.common.DumpTrigger;
+
+import junit.framework.TestCase;
+
+public class TestLibraryLoad extends TestCase {
+
+	private static String getLibName() {
+		String libloc=System.getProperties().get("libloc").toString();
+		File dir=new File(libloc);
+		File[] kids=dir.listFiles();
+		for(File kid:dir.listFiles()) {
+			String name=kid.getName();
+			if(name.contains("katovmapi")) return kid.getAbsolutePath();
+		}
+		return null;
+	}
+	public void testTrigger() {
+		
+		String libname=getLibName();	
+		System.load(libname);
+		DumpTrigger t=new DumpTrigger();
+		t.triggerDump();
+	}
+}

Modified: incubator/kato/trunk/org.apache.kato/kato.native/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/pom.xml?rev=819548&r1=819547&r2=819548&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/pom.xml Mon Sep 28 14:23:32 2009
@@ -13,5 +13,6 @@
   <description>Apache Kato native code modules	</description>
   <modules>
   	<module>kato.native.cjvmti</module>
+  	<module>kato.native.vmapi</module>
   </modules>
 </project>
\ No newline at end of file



Mime
View raw message