You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/09 13:36:12 UTC

svn commit: r763610 - in /commons/sandbox/runtime/trunk: build.xml src/test/org/apache/commons/runtime/TestProperties.java

Author: mturk
Date: Thu Apr  9 11:36:11 2009
New Revision: 763610

URL: http://svn.apache.org/viewvc?rev=763610&view=rev
Log:
Use basedir instead relative path

Modified:
    commons/sandbox/runtime/trunk/build.xml
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestProperties.java

Modified: commons/sandbox/runtime/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/build.xml?rev=763610&r1=763609&r2=763610&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/build.xml (original)
+++ commons/sandbox/runtime/trunk/build.xml Thu Apr  9 11:36:11 2009
@@ -39,7 +39,7 @@
     <property name="junit.jar" value="${junit.home}/junit-4.5.jar"/>
     <property name="commons-logging.home" value="./lib"/>
     <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging-1.1.1.jar"/>
-    <property name="runtime.library.path" value="${src.dir}/main/native/.libs"/>
+    <property name="runtime.library.path" value="${basedir}/src/main/native/.libs"/>
 
     <property name="compile.source" value="5"/>
     <property name="compile.target" value="5"/>

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestProperties.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestProperties.java?rev=763610&r1=763609&r2=763610&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestProperties.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestProperties.java Thu Apr  9 11:36:11 2009
@@ -38,9 +38,11 @@
         String property;
         Properties p = System.getProperties();
         property = p.getProperty("os.name");
-        assertNotNull("os.name ", p);
+        assertNotNull("os.name ", property);
         property = p.getProperty("os.arch");
-        assertNotNull("os.arch ", p);
+        assertNotNull("os.arch ", property);
+        property = p.getProperty("java.library.path");
+        assertNotNull("java.library.path ", property);
     }
 
 }