Updated to support Git and Jenkins

This commit is contained in:
Giancarlo Panichi 2019-10-15 12:19:16 +02:00
parent 7abbb54444
commit e43d1f5440
5 changed files with 27 additions and 8 deletions

View File

@ -1,5 +1,5 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.compiler.source=1.7

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.google.gdt.eclipse.suite.webapp">
<booleanAttribute key="com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES" value="true"/>
<stringAttribute key="com.google.gwt.eclipse.core.URL" value="WidgetCommonEvent.html"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/tabular-data-widget-common-event"/>

26
pom.xml
View File

@ -43,7 +43,10 @@
<distroDirectory>distro</distroDirectory>
<configDirectory>config</configDirectory>
<!-- Java -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- GWT configuration -->
<gwtVersion>2.6.1</gwtVersion>
<gwtLogVersion>3.3.2</gwtLogVersion>
@ -84,7 +87,13 @@
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
<!-- For test
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
</dependency> -->
<!-- LOGGING -->
<dependency>
@ -129,7 +138,7 @@
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
@ -164,15 +173,24 @@
<goal>resources</goal>
</goals>
</execution>
<!-- <execution>
<id>run-gwt-tests</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution> -->
</executions>
<configuration>
<sourceLevel>${maven.compiler.source}</sourceLevel>
<runTarget>WidgetCommonEvent.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<module>org.gcube.portlets.user.td.widgetcommonevent.WidgetCommonEvent</module>
<includes>**/GwtTest*.java</includes>
<!-- <includes>**/GwtTest*.java</includes> -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>

View File

@ -29,7 +29,7 @@ public class GwtTestWidgetCommonEvent extends GWTTestCase {
*/
@Test
public void testEvents() {
System.out.println("Test Ribbon Event");
SimpleEventBus eventBus = new SimpleEventBus();
eventBus.addHandler(RibbonEvent.TYPE, new RibbonEvent.RibbonEventHandler() {

View File

@ -6,7 +6,7 @@
<!-- Specify the path to any remote services. -->
<!-- <servlet path="/TDGWTService"
class="org.gcube.portlets.user.td.gwtservice.server.TDGWTServiceImpl" /> -->
<!-- <entry-point class='org.gcube.portlets.user.td.widgetcommonevent.client.GwtTestWidgetCommonEvent'/> -->
<!-- Specify the paths for translatable code -->
<source path='client' />