incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r885762 - in /incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi: src/main/native/katovmapi.c tests/pom.xml
Date Tue, 01 Dec 2009 13:36:11 GMT
Author: monteith
Date: Tue Dec  1 13:36:11 2009
New Revision: 885762

URL: http://svn.apache.org/viewvc?rev=885762&view=rev
Log:
Fix EOL in vmapi

Modified:
    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/tests/pom.xml

Modified: 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=885762&r1=885761&r2=885762&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/src/main/native/katovmapi.c
Tue Dec  1 13:36:11 2009
@@ -1,69 +1,69 @@
-/*******************************************************************************
- * 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.
- ******************************************************************************/
-
-
-#include "org_apache_kato_common142_DumpTrigger.h"
+/*******************************************************************************
+ * 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.
+ ******************************************************************************/
+
+
+#include "org_apache_kato_common142_DumpTrigger.h"
 
 #ifdef __linux__
 #include <signal.h>
-#elif WIN32
-#include <Windows.h>
-#endif
-/*
- * Class:     org_apache_kato_common_DumpTrigger
- * Method:    getNativeProcessID
- * Signature: ()I
- */
-JNIEXPORT jint JNICALL Java_org_apache_kato_common142_DumpTrigger_getNativeProcessID
-(JNIEnv *env, jobject obj) {
-	 jint result=0;
+#elif WIN32
+#include <Windows.h>
+#endif
+/*
+ * Class:     org_apache_kato_common_DumpTrigger
+ * Method:    getNativeProcessID
+ * Signature: ()I
+ */
+JNIEXPORT jint JNICALL Java_org_apache_kato_common142_DumpTrigger_getNativeProcessID
+(JNIEnv *env, jobject obj) {
+	 jint result=0;
 
 #ifdef __linux__
 	int pid=getpid();
-	result=pid;
-#elif WIN32
-	 DWORD ProcessId = GetCurrentProcessId();
-	 result=ProcessId;
-#endif
-
-	 return result;
-
-}
-
-/*
- * Class:     org_apache_kato_common_DumpTrigger
- * Method:    triggernativeDump
- * Signature: ()Z
- */JNIEXPORT jboolean JNICALL Java_org_apache_kato_common142_DumpTrigger_sendDumpSignal
- (JNIEnv *env, jobject obj, jint processID) {
-
-	
+	result=pid;
+#elif WIN32
+	 DWORD ProcessId = GetCurrentProcessId();
+	 result=ProcessId;
+#endif
+
+	 return result;
+
+}
+
+/*
+ * Class:     org_apache_kato_common_DumpTrigger
+ * Method:    triggernativeDump
+ * Signature: ()Z
+ */JNIEXPORT jboolean JNICALL Java_org_apache_kato_common142_DumpTrigger_sendDumpSignal
+ (JNIEnv *env, jobject obj, jint processID) {
+
+	
 	jboolean result=JNI_FALSE;
 #ifdef __linux__
 
 	pid_t pid=processID;
 	kill(pid,SIGQUIT);
-	result=JNI_TRUE;
+	result=JNI_TRUE;
 #elif WIN32	
-
+
 	GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT,0);
-	result=JNI_TRUE;
+	result=JNI_TRUE;
 #endif
-
-	return result;
-	
-}
-
-
-
+
+	return result;
+	
+}
+
+
+

Modified: 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=885762&r1=885761&r2=885762&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml Tue Dec
 1 13:36:11 2009
@@ -18,52 +18,52 @@
 -->
 <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>M1-incubating</version>
-	</parent>
-	<modelVersion>4.0.0</modelVersion>
-	<groupId>org.apache.kato</groupId>
-	<artifactId>kato.native.vmapi.tests</artifactId>
-	<version>M1-incubating</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.142</artifactId>
-			<version>M1-incubating</version>
-			<scope>test</scope>
-		</dependency>
-	</dependencies>
-
+	<parent>
+		<groupId>org.apache.kato</groupId>
+		<artifactId>kato.native.vmapi</artifactId>
+		<version>M1-incubating</version>
+	</parent>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.kato</groupId>
+	<artifactId>kato.native.vmapi.tests</artifactId>
+	<version>M1-incubating</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.142</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+
 	<properties>
 
-	</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>${basedir}/../target</value>
-						</property>
+	</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>${basedir}/../target</value>
+						</property>
                         <property>
                             <name>org.apache.kato.dumptrigger.librarypath</name>
                             <value>${basedir}/../target/${kato.vmapi.libname}</value>
                         </property>
-					</systemProperties>
-				</configuration>
-			</plugin>
-		</plugins>
-	</build>
+					</systemProperties>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
 </project>



Mime
View raw message