Author: konstantin.mishin
Date: 2008-12-05 10:38:49 -0500 (Fri, 05 Dec 2008)
New Revision: 11585
Added:
trunk/test-applications/seleniumTest/richfaces/src/find_firefox.sh
Modified:
trunk/test-applications/seleniumTest/richfaces/pom.xml
Log:
RF-5197
Modified: trunk/test-applications/seleniumTest/richfaces/pom.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/pom.xml 2008-12-05 15:38:09 UTC (rev
11584)
+++ trunk/test-applications/seleniumTest/richfaces/pom.xml 2008-12-05 15:38:49 UTC (rev
11585)
@@ -85,6 +85,36 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>linux</id>
+ <activation>
+ <os>
+ <family>unix</family>
+ </os>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <executable>src/find_firefox.sh</executable>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
<repositories>
<repository>
<releases>
@@ -97,4 +127,10 @@
<
url>http://snapshots.jboss.org/maven2</url>
</repository>
</repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>codehaus</id>
+ <
url>http://repository.codehaus.org/</url>
+ </pluginRepository>
+ </pluginRepositories>
</project>
\ No newline at end of file
Added: trunk/test-applications/seleniumTest/richfaces/src/find_firefox.sh
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/find_firefox.sh
(rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/find_firefox.sh 2008-12-05 15:38:49
UTC (rev 11585)
@@ -0,0 +1,15 @@
+#find firefox
+PATHS=( '/usr/lib/firefox-1.0.4/' '/usr/lib/firefox-1.5.0.10/'
'/usr/lib/firefox-1.5.0.12/' '/usr/lib64/firefox-1.5.0.12/'
'/usr/lib/firefox-3.0b5/' '/usr/lib64/firefox-3.0b5/'
'/usr/lib/firefox-3.0.1/' '/usr/lib64/firefox-3.0.1/'
'/usr/lib/firefox/' '/opt/MozillaFirefox/lib/')
+for ELEMENT in ${PATHS[@]}
+ do
+ if [ -f $ELEMENT/firefox ]
+ then
+ export FF_BIN=$ELEMENT/firefox
+ export LD_LIBRARY_PATH=$ELEMENT
+ fi
+ if [ -f $ELEMENT/firefox-bin ]
+ then
+ export FF_BIN=$ELEMENT/firefox-bin
+ export LD_LIBRARY_PATH=$ELEMENT
+ fi
+done
\ No newline at end of file