Author: manolo
Date: Mon Apr 30 11:51:57 2012
New Revision: 1332166
URL: http://svn.apache.org/viewvc?rev=1332166&view=rev
Log:
Compile all locale and browser permutations when using production profile
Added:
james/hupa/trunk/client/src/main/java/org/apache/hupa/HupaProd.gwt.xml
Modified:
james/hupa/trunk/client/pom.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
james/hupa/trunk/client/src/main/webapp/Hupa.css
Modified: james/hupa/trunk/client/pom.xml
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1332166&r1=1332165&r2=1332166&view=diff
==============================================================================
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Mon Apr 30 11:51:57 2012
@@ -135,10 +135,10 @@
</extraJvmArgs>
<localWorkers>1</localWorkers>
<compileReport>true</compileReport>
- <disableClassMetadata>true</disableClassMetadata>
- <disableCastChecking>true</disableCastChecking>
+
<disableClassMetadata>${gwt.disableClassMetadata}</disableClassMetadata>
+
<disableCastChecking>${gwt.disableCastChecking}</disableCastChecking>
<modules>
- <module>org.apache.hupa.Hupa</module>
+
<module>org.apache.hupa.Hupa${gwt.moduleSuffix}</module>
</modules>
</configuration>
<executions>
@@ -299,4 +299,14 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>prod</id>
+ <properties>
+ <gwt.moduleSuffix>Prod</gwt.moduleSuffix>
+ <gwt.disableClassMetadata>true</gwt.disableClassMetadata>
+ <gwt.disableCastChecking>true</gwt.disableCastChecking>
+ </properties>
+ </profile>
+ </profiles>
</project>
Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml?rev=1332166&r1=1332165&r2=1332166&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml Mon Apr
30 11:51:57 2012
@@ -35,6 +35,7 @@
<inherits name="eu.maydu.gwt.validation.ValidationLibrary"/>
<inherits name='com.allen_sauer.gwt.dnd.gwt-dnd'/>
<inherits name='com.google.web.bindery.requestfactory.RequestFactory'/>
+ <!-- <inherits name="com.google.gwt.junit.JUnit"/> -->
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
@@ -46,84 +47,10 @@
<stylesheet src="Upload.css"/>
<source path="client"/>
- <set-property name="compiler.stackMode" value="strip" />
-
-
-<!-- <extend-property name="locale" values="en" /> -->
-<!-- <extend-property name="locale" values="es" /> -->
-<!-- <extend-property name="locale" values="de" /> -->
+ <!-- In dev mode compile just for FF and webkit -->
<set-property name="user.agent" value="gecko1_8,safari"/>
-
<!-- Specify the app entry point class. -->
<entry-point class='org.apache.hupa.client.Hupa'/>
-
- <!--
- Modifies the default gwt's language detection algorithm, in order
- to include the locale reported by the browser.
-
- This modification has been sent to gwt, if it were accepted and
included
- in the original I18N.gwt.xml, this code could be removed.
- see: http://code.google.com/p/google-web-toolkit/issues/detail?id=4228
- -->
- <property-provider name="locale">
- <![CDATA[
- try {
- var locale;
-
- // Look for the locale as a url argument
- if (locale == null) {
- var args = location.search;
- var startLang = args.indexOf("locale=");
- if (startLang >= 0) {
- var language = args.substring(startLang);
- var begin = language.indexOf("=") + 1;
- var end = language.indexOf("&");
- if (end == -1) {
- end = language.length;
- }
- locale = language.substring(begin, end);
- }
- }
-
- if (locale == null) {
- // Look for the locale on the web page
- locale = __gwt_getMetaProperty("locale")
- }
-
- if (locale == null) {
- // Look for an override computed by other means in the selection script
- locale = $wnd['__gwt_Locale'];
- }
-
- if (locale == null) {
- // Use the browser's locale
- locale = navigator.browserLanguage ? navigator.browserLanguage :
navigator.language;
- if (locale != null) {
- locale = locale.replace(/-/g, '_');
- }
- }
-
- if (locale == null) {
- return "default";
- }
-
- while (!__gwt_isKnownPropertyValue("locale", locale)) {
- var lastIndex = locale.lastIndexOf("_");
- if (lastIndex == -1) {
- locale = "default";
- break;
- } else {
- locale = locale.substring(0,lastIndex);
- }
- }
- return locale;
- } catch(e){
- alert("Unexpected exception in locale detection, using default: " + e);
- return "default";
- }
- ]]>
- </property-provider>
- <inherits name="com.google.gwt.junit.JUnit"/>
</module>
Added: james/hupa/trunk/client/src/main/java/org/apache/hupa/HupaProd.gwt.xml
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/HupaProd.gwt.xml?rev=1332166&view=auto
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/HupaProd.gwt.xml
(added)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/HupaProd.gwt.xml Mon
Apr 30 11:51:57 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to you under the Apache License, Version
+ 2.0 (the "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+ applicable law or agreed to in writing, software distributed under the
+ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ CONDITIONS OF ANY KIND, either express or implied. See the License for
+ the specific language governing permissions and limitations under the
+ License.
+-->
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6.4//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-source/core/src/gwt-module.dtd">
+<module rename-to='hupa'>
+ <inherits name='org.apache.hupa.Hupa'/>
+
+ <set-property name="compiler.stackMode" value="strip" />
+
+ <!-- Set the languages to compile -->
+ <!-- It multiplies the number of permutations -->
+ <set-property name="locale" value="en" />
+ <extend-property name="locale" values="es,de"/>
+ <set-property-fallback name="locale" value="en"/>
+ <set-configuration-property name="locale.useragent" value="Y"/>
+
+ <!-- Compile for all browsers -->
+ <set-property name="user.agent" value="gecko1_8,safari,opera,ie6,ie8,ie9"/>
+</module>
Modified: james/hupa/trunk/client/src/main/webapp/Hupa.css
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/webapp/Hupa.css?rev=1332166&r1=1332165&r2=1332166&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/webapp/Hupa.css (original)
+++ james/hupa/trunk/client/src/main/webapp/Hupa.css Mon Apr 30 11:51:57 2012
@@ -25,7 +25,7 @@ body, table td, select, * {
/************[ widget: MyDialogBox ]****************/
.hupa-dialog-box td.dialogMiddleCenter {
- background: #fae5b0 !important;
+ background: #fae5b0;
}
.hupa-dialog-box .dialogContent .gwt-Label {
font-weight: bold;
@@ -365,10 +365,10 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#FFFFFF', endColorstr='#C5D9FF',GradientType=0 );
}
.hupa-commands-bar {
- background: -moz-linear-gradient(#C5D9FF, #deeeff);
- background: -o-linear-gradient(#C5D9FF, #deeeff);
- background: -webkit-linear-gradient(#C5D9FF, #deeeff);
- filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#C5D9FF', endColorstr='#deeeff',GradientType=0 );
+ background: -moz-linear-gradient(#C5D9FF, #eaeaea);
+ background: -o-linear-gradient(#C5D9FF, #eaeaea);
+ background: -webkit-linear-gradient(#C5D9FF, #eaeaea);
+ filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#C5D9FF', endColorstr='#eaeaea',GradientType=0 );
}
.hupa-tree {
background: -moz-linear-gradient(#C5D9FF, #eaeaea);
@@ -377,12 +377,18 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#C5D9FF', endColorstr='#eaeaea',GradientType=0 );
}
div.hupa-main {
- background: -moz-linear-gradient(#eaeaea, #ffffff);
- background: -o-linear-gradient(#eaeaea, #ffffff);
- background: -webkit-linear-gradient(#eaeaea, #ffffff);
- filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#eaeaea', endColorstr='#ffffff',GradientType=0 );
+ background: -moz-linear-gradient(#eaeaea, #cacaca);
+ background: -o-linear-gradient(#eaeaea, #cacaca);
+ background: -webkit-linear-gradient(#eaeaea, #cacaca);
+ filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#eaeaea', endColorstr='#cacaca',GradientType=0 );
}
.hupa-login-form, .hupa-bottom {
text-shadow: 3px 3px 3px #666666;
- filter: progid:DXImageTransform.Microsoft.Shadow(color='#666666',
Direction=135, Strength=4);
+ /* filter: progid:DXImageTransform.Microsoft.Shadow(color='#666666',
Direction=135, Strength=4); */
+}
+.hupa-flash, .hupa-dialog-box td.dialogMiddleCenter {
+ background: -moz-linear-gradient(#fae5b0, #eaeaea);
+ background: -o-linear-gradient(#fae5b0, #eaeaea);
+ background: -webkit-linear-gradient(#fae5b0, #eaeaea);
+ filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#fae5b0', endColorstr='#eaeaea',GradientType=0 );
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]