[sikuli] 134/385: minor
Gilles Filippini
pini at moszumanska.debian.org
Sun Jun 29 19:26:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to tag upstream/1.1.0_beta1
in repository sikuli.
commit f8136f53443384efbc7e796e2be20363fabe37ac
Author: Raimund Hocke <rmhdevelop at me.com>
Date: Tue Jan 7 14:59:29 2014 +0100
minor
---
Basics/pom.xml | 100 ++++++++++-----------
.../src/main/java/org/sikuli/basics/SysUtil.java | 11 ++-
2 files changed, 59 insertions(+), 52 deletions(-)
diff --git a/Basics/pom.xml b/Basics/pom.xml
index c319e28..ad80155 100755
--- a/Basics/pom.xml
+++ b/Basics/pom.xml
@@ -1,55 +1,53 @@
<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/xsd/maven-4.0.0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <!--
- * Copyright 2010-2013, Sikuli.org
- * Released under the MIT License.
- *
- * RaiMan 2013
- -->
+ <!--
+ * Copyright 2010-2013, Sikuli.org
+ * Released under the MIT License.
+ *
+ * RaiMan 2013
+ -->
- <parent>
- <groupId>org.sikuli</groupId>
- <artifactId>SikuliX</artifactId>
- <version>1.1.0</version>
- <relativePath>../</relativePath>
- </parent>
+ <parent>
+ <groupId>org.sikuli</groupId>
+ <artifactId>SikuliX</artifactId>
+ <version>1.1.0</version>
+ <relativePath>../</relativePath>
+ </parent>
- <modelVersion>4.0.0</modelVersion>
+ <modelVersion>4.0.0</modelVersion>
- <groupId>org.sikuli</groupId>
- <artifactId>SikuliX-Basics</artifactId>
- <version>1.1.0</version>
+ <groupId>org.sikuli</groupId>
+ <artifactId>SikuliX-Basics</artifactId>
+ <version>1.1.0</version>
- <dependencies>
+ <dependencies>
<dependency>
- <groupId>commons-cli</groupId>
- <artifactId>commons-cli</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>com.melloware</groupId>
- <artifactId>jintellitype</artifactId>
- <version>1.3.7</version>
- </dependency>
- <dependency>
- <groupId>jxgrabkey</groupId>
- <artifactId>jxgrabkey</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>org.swinglabs</groupId>
- <artifactId>swing-layout</artifactId>
- <version>1.0.3</version>
- </dependency>
-
- <!-- for changing PATH -->
- <dependency>
- <groupId>com.nativelibs4java</groupId>
- <artifactId>bridj</artifactId>
- <version>0.6.2</version>
- </dependency>
- </dependencies>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.melloware</groupId>
+ <artifactId>jintellitype</artifactId>
+ <version>1.3.7</version>
+ </dependency>
+ <dependency>
+ <groupId>jxgrabkey</groupId>
+ <artifactId>jxgrabkey</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.swinglabs</groupId>
+ <artifactId>swing-layout</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.nativelibs4java</groupId>
+ <artifactId>bridj</artifactId>
+ <version>0.6.2</version>
+ </dependency>
+ </dependencies>
<build>
<plugins>
@@ -65,12 +63,12 @@
</configuration>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- <configuration>
- <mainClass>org.sikuli.basics.RunSetup</mainClass>
- </configuration>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <configuration>
+ <mainClass>org.sikuli.basics.RunSetup</mainClass>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/Basics/src/main/java/org/sikuli/basics/SysUtil.java b/Basics/src/main/java/org/sikuli/basics/SysUtil.java
index 83f6279..dfd32bb 100644
--- a/Basics/src/main/java/org/sikuli/basics/SysUtil.java
+++ b/Basics/src/main/java/org/sikuli/basics/SysUtil.java
@@ -19,6 +19,11 @@ public class SysUtil {
}
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms683188(v=vs.85).aspx
+ //DWORD WINAPI GetEnvironmentVariable(
+ // _In_opt_ LPCTSTR lpName,
+ // _Out_opt_ LPTSTR lpBuffer,
+ // _In_ DWORD nSize
+ //);
private static native int GetEnvironmentVariableW(
Pointer<Character> lpName,
Pointer<Character> lpBuffer,
@@ -26,6 +31,10 @@ public class SysUtil {
);
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms686206(v=vs.85).aspx
+ //BOOL WINAPI SetEnvironmentVariable(
+ // _In_ LPCTSTR lpName,
+ // _In_opt_ LPCTSTR lpValue
+ //);
private static native boolean SetEnvironmentVariableW(
Pointer<Character> lpName,
Pointer<Character> lpValue
@@ -38,7 +47,7 @@ public class SysUtil {
* @return current content
*/
public static String getEnvironmentVariable(String name) {
- final int BUFFER_SIZE = 16384;
+ final int BUFFER_SIZE = 32767;
Pointer<Character> buffer = Pointer.allocateArray(Character.class, BUFFER_SIZE);
int result = GetEnvironmentVariableW(Pointer.pointerToWideCString(name), buffer, BUFFER_SIZE);
if (result == 0) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git
More information about the pkg-java-commits
mailing list