[jboss-cvs] JBossAS SVN: r69136 - projects/aop/trunk/aop/src/test/org/jboss/test/aop/proxy.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jan 18 18:44:06 EST 2008
Author: flavia.rainone at jboss.com
Date: 2008-01-18 18:44:06 -0500 (Fri, 18 Jan 2008)
New Revision: 69136
Modified:
projects/aop/trunk/aop/src/test/org/jboss/test/aop/proxy/SerializeContainerProxyOutOfVmTestCase.java
Log:
[JBAOP-467] Added code to find the jvm dir when running the test on linux.
Modified: projects/aop/trunk/aop/src/test/org/jboss/test/aop/proxy/SerializeContainerProxyOutOfVmTestCase.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/proxy/SerializeContainerProxyOutOfVmTestCase.java 2008-01-18 23:35:00 UTC (rev 69135)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/proxy/SerializeContainerProxyOutOfVmTestCase.java 2008-01-18 23:44:06 UTC (rev 69136)
@@ -152,9 +152,12 @@
{
if (File.separatorChar == '/')
{
- //Probably on Linuxx
- //AFAIK on linux we have no extension after java in the bin directory?
- String file = getFile(dirName + File.separator + "java");
+ //Probably on Linux
+ if (dirName.contains("jre"))
+ {
+ dirName = dirName.substring(0, dirName.indexOf(File.separatorChar + "jre"));
+ }
+ String file = getFile(dirName + File.separator + "bin" + File.separator + "java");
if (file != null)
{
return file;
More information about the jboss-cvs-commits
mailing list