Permalink
Browse files

Added SureFire reporting for "mvn site" generation.

New ImageBundleApp let's ftl pages easily show ImageBundle images. 
Commented out problematic tests.
  • Loading branch information...
1 parent b5a983d commit a90c2a8e2e8ce9cff3f588c6645e073e247b3941 @jdwyah committed Mar 14, 2008
@@ -1,4 +1,6 @@
-These scripts are designed to be copied into the GWT trunk to install
+These scripts are designed to be copied into the GWT trunk to help you install GWT to your Maven repository.
+You ONLY need to do this if you want to install GWT directly from SVN.
+If your happy running released GWT jars, you should stick to the install script located one directory above this.
1) Checkout GWT from SVN
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/ProGWT"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;ProGWT&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;ProGWT&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/ProGWT/src/main/java&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/ProGWT/src/main/resources&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.GWTShell"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-out www com.apress.progwt.Interactive/ImageBundle.html"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="ProGWT"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms512m -Xmx512m"/>
+</launchConfiguration>
View
@@ -12,6 +12,9 @@
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>
</repositories>
+ <properties>
+ <maven.test.failure.ignore>true</maven.test.failure.ignore>
+ </properties>
<build>
<plugins>
<plugin>
@@ -391,9 +394,22 @@
</dependency>
+ </dependencies>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ <!-- Uncomment for code coverage statistics -->
+ <!-- <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ </plugin> -->
+ </plugins>
+ </reporting>
- </dependencies>
</project>
@@ -252,7 +252,9 @@ public GWTUserServiceAsync getUserService() {
// }
protected void initConstants() {
- ConstHolder.images = (Images) GWT.create(Images.class);
+ if(ConstHolder.images == null){
+ ConstHolder.images = (Images) GWT.create(Images.class);
+ }
}
/**
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2008 Jeff Dwyer
+ *
+ * Licensed 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.
+ */
+package com.apress.progwt.client;
+
+import com.apress.progwt.client.consts.ConstHolder;
+import com.google.gwt.user.client.ui.Image;
+import com.google.gwt.user.client.ui.RootPanel;
+
+public class ImageBundleApp extends GWTApp {
+
+ public ImageBundleApp(int pageID) {
+ super(pageID);
+
+ initConstants();
+
+ String name = getParam("name");
+
+ if(name == null){
+ throw new RuntimeException("Image '"+name+"' not mapped.");
+ }
+
+ Image image = null;
+
+
+ if(name.equals("checked")){
+ image = ConstHolder.images.checked().createImage();
+ }else if(name.equals("unchecked")){
+ image = ConstHolder.images.unchecked().createImage();
+ }else if(name.equals("pctStatus100")){
+ image = ConstHolder.images.pctStatus100().createImage();
+ }else if(name.equals("pctStatus75")){
+ image = ConstHolder.images.pctStatus75().createImage();
+ }else if(name.equals("pctStatus50")){
+ image = ConstHolder.images.pctStatus50().createImage();
+ }else if(name.equals("pctStatus25")){
+ image = ConstHolder.images.pctStatus25().createImage();
+ }else if(name.equals("pctStatus0")){
+ image = ConstHolder.images.pctStatus0().createImage();
+ }
+
+ if(image == null){
+ throw new RuntimeException("Image '"+name+"' not mapped.");
+ }
+
+ show(image);
+
+ RootPanel.get(getPreLoadID()).setVisible(false);
+ }
+
+}
@@ -141,6 +141,9 @@ public void onModuleLoad2() {
} else if (widget.equals("VerticalLabel")) {
VerticalLabelApp c = new VerticalLabelApp(
currentWidget);
+ } else if (widget.equals("ImageBundle")) {
+ ImageBundleApp c = new ImageBundleApp(
+ currentWidget);
} else {
throw new Exception("Vars['widget_" + currentWidget
+ "] => " + widget + " null or no match.");
@@ -28,78 +28,33 @@
*/
public interface Images extends ImageBundle {
- /**
- * @gwt.resource magnifyingBig.png
- */
AbstractImagePrototype magnifyingBig();
- /**
- * @gwt.resource magnifyingSmall.png
- */
AbstractImagePrototype magnifyingSmall();
- /**
- * @gwt.resource bullet_blue.png
- */
AbstractImagePrototype bullet_blue();
- /**
- * @gwt.resource applying.png
- */
AbstractImagePrototype applying();
- /**
- * @gwt.resource accepted.png
- */
AbstractImagePrototype accepted();
-
- /**
- * @gwt.resource rejected.png
- */
+
AbstractImagePrototype rejected();
-
- /**
- * @gwt.resource applied.png
- */
+
AbstractImagePrototype applied();
- /**
- * @gwt.resource considering.png
- */
AbstractImagePrototype considering();
-
- /**
- * @gwt.resource pctStatus0.png
- */
+
AbstractImagePrototype pctStatus0();
- /**
- * @gwt.resource pctStatus25.png
- */
AbstractImagePrototype pctStatus25();
- /**
- * @gwt.resource pctStatus50.png
- */
AbstractImagePrototype pctStatus50();
- /**
- * @gwt.resource pctStatus75.png
- */
AbstractImagePrototype pctStatus75();
- /**
- * @gwt.resource pctStatus100.png
- */
AbstractImagePrototype pctStatus100();
- /**
- * @gwt.resource checked.png
- */
AbstractImagePrototype checked();
- /**
- * @gwt.resource unchecked.png
- */
AbstractImagePrototype unchecked();
}
@@ -45,7 +45,7 @@
</div>
</div>
<div id="gwt-status"></div>
- <script language='javascript' src='/com.apress.progwt.Interactive/com.apress.progwt.Interactive.nocache.js'></script>
+ <script language='javascript' src='com.apress.progwt.Interactive.nocache.js'></script>
<iframe id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe>
@@ -0,0 +1,34 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
+ <head>
+
+
+ <title>ImageBundle test</title>
+ </head>
+ <body onunload="GUnload()">
+
+
+
+ <div id="collegeMap" class="boxContent">
+
+
+ <script language="JavaScript">
+ var Vars = {}
+ </script>
+ <script language="JavaScript">
+ Vars['widgetCount']= "1"
+ Vars['widget_1'] = "ImageBundle"
+ Vars['name_1'] = "checked"
+ </script>
+ <div id="gwt-slot-1"></div>
+ <div id="gwt-loading-1" class="loading"><p>Loading...</p></div>
+ <div id="preload"></div>
+ </div>
+
+ <div id="gwt-status"></div>
+ <script language='javascript' src='com.apress.progwt.Interactive.nocache.js'></script>
+ <iframe id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe>
+
+
+
+ </body>
+</html>
@@ -31,7 +31,7 @@
</div>
</div>
<div id="gwt-status"></div>
- <script language='javascript' src='/com.apress.progwt.Interactive/com.apress.progwt.Interactive.nocache.js'></script>
+ <script language='javascript' src='com.apress.progwt.Interactive.nocache.js'></script>
<iframe id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe>
@@ -58,7 +58,7 @@
</div>
</div>
<div id="gwt-status"></div>
- <script language='javascript' src='/com.apress.progwt.Interactive/com.apress.progwt.Interactive.nocache.js'></script>
+ <script language='javascript' src='com.apress.progwt.Interactive.nocache.js'></script>
<iframe id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe>
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2008 Jeff Dwyer
+ *
+ * Licensed 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.
+ */
+package com.apress.progwt.server.web.controllers;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.log4j.Logger;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import com.apress.progwt.client.domain.User;
+import com.apress.progwt.server.service.SchoolService;
+import com.apress.progwt.server.service.UserService;
+
+/**
+ *
+ * @author Jeff Dwyer
+ */
+@Controller
+public class FacebookController {
+ private static final Logger log = Logger
+ .getLogger(FacebookController.class);
+
+ private UserService userService;
+ private SchoolService schoolService;
+
+ @RequestMapping("/facebook")
+ public ModelMap facebookHandler(HttpServletRequest req) {
+
+ ModelMap rtn = ControllerUtil.getModelMap(req, userService);
+
+ User user = userService.getUserByNicknameFullFetch("test");
+
+
+ rtn.addAttribute("viewUser", user);
+
+ return rtn;
+
+ }
+ @Autowired
+ public void setUserService(UserService userService) {
+ this.userService = userService;
+ }
+
+ @Autowired
+ public void setSchoolService(SchoolService schoolService) {
+ this.schoolService = schoolService;
+ }
+
+}
@@ -4,8 +4,10 @@ db.dialect=org.hibernate.dialect.MySQLInnoDBDialect
jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/progwt
+gears.betaManifestVersion=1
-paypal.endpoint=https://www.sandbox.paypal.com/cgi-bin/webscr
+users.maxUsers=3
+users.startInvitations=2
#windows sample
sonata.compass.repo=file://DB/compass/toCollege
@@ -28,8 +30,3 @@ ip-208-109-97-168.ip.secureserver.net.gwt.serializeEverything=false
ip-208-109-97-168.ip.secureserver.net.gears.localserver.dir=/usr/local/tomcat/webapps/tocollege.net/ROOT/com.apress.progwt.Interactive/
ip-208-109-97-168.ip.secureserver.net.gears.localserver.url=http://www.tocollege.net/com.apress.progwt.Interactive/
-gears.betaManifestVersion=1
-
-users.maxUsers=1
-users.startInvitations=2
-
Oops, something went wrong.

0 comments on commit a90c2a8

Please sign in to comment.