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 eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 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.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"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.google.gdt.eclipse.suite.webapp"> <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"/> <stringAttribute key="com.google.gwt.eclipse.core.URL" value="WidgetCommonEvent.html"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/tabular-data-widget-common-event"/> <listEntry value="/tabular-data-widget-common-event"/>

26
pom.xml
View File

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

View File

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

View File

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