portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r772589 - /portals/jetspeed-2/portal/trunk/applications/jetspeed/pom.xml
Date Thu, 07 May 2009 10:16:02 GMT
Author: woonsan
Date: Thu May  7 10:16:02 2009
New Revision: 772589

URL: http://svn.apache.org/viewvc?rev=772589&view=rev
Log:
Fixing a weird problem which can happen when compressing javascript files under Open JDK 1.6.
Jetspeed is using custom_rhino library from Dojotoolkit to compress javascript files. 
The custom_rhino is extending the rhino shell Main. So, we cannot simple replace the custom_rhino
with new rhino library.
By this prepending custom_rhino library in the bootstrap classpath, the JVM will always choose
custom_rhino's shell Main class to compress the javascripts.

Modified:
    portals/jetspeed-2/portal/trunk/applications/jetspeed/pom.xml

Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/pom.xml?rev=772589&r1=772588&r2=772589&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/applications/jetspeed/pom.xml (original)
+++ portals/jetspeed-2/portal/trunk/applications/jetspeed/pom.xml Thu May  7 10:16:02 2009
@@ -112,6 +112,9 @@
                 </copy>
                 <apply executable="${java.home}/bin/java"
                        dir="${project.build.directory}/${project.build.finalName}/javascript/jetspeed">
+                  <!-- Needs to prepend custom_rhino jar of dojotoolkit in the boot classpath

+                  because some JVMs such as OpenJDK 1.6 may embed another rhino jar. -->
+                  <arg value="-Xbootclasspath/p:${compressor.jar}"/>
                   <arg value="-jar"/>
                   <arg value="${compressor.jar}"/>
                   <arg value="-strict"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message