aboutsummaryrefslogtreecommitdiffstats
path: root/archetype
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2012-11-26 16:20:48 +0100
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2012-11-26 16:20:48 +0100
commit1313f0c0286cc31edf9874cedeb44f8689e7d0d0 (patch)
tree2b8f76e39102d96fa813fab5b7dec78765d6bcde /archetype
parent305fd24cf14d4592ce0db0409193195ebc686678 (diff)
downloadgwtquery-1313f0c0286cc31edf9874cedeb44f8689e7d0d0.tar.gz
gwtquery-1313f0c0286cc31edf9874cedeb44f8689e7d0d0.zip
End lines with LF instead of CRLF
Diffstat (limited to 'archetype')
-rw-r--r--archetype/src/main/resources/archetype-resources/pom.xml394
-rw-r--r--archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml2
-rw-r--r--archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java56
-rw-r--r--archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java6
4 files changed, 229 insertions, 229 deletions
diff --git a/archetype/src/main/resources/archetype-resources/pom.xml b/archetype/src/main/resources/archetype-resources/pom.xml
index d0de9573..dc350f81 100644
--- a/archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/pom.xml
@@ -1,197 +1,197 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
-
- <name>${projectName} gwtquery project</name>
- <groupId>${groupId}</groupId>
- <artifactId>${artifactId}</artifactId>
- <packaging>war</packaging>
- <version>${version}</version>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.6</maven.compiler.source>
- <maven.compiler.target>1.6</maven.compiler.target>
- <gQueryVersion>1.1.0</gQueryVersion>
- <gwtversion>2.5.0-rc1</gwtversion>
- <gwtmaven>2.4.0</gwtmaven>
- </properties>
-
- <repositories>
- <repository>
- <id>central</id>
- <url>http://repo1.maven.org/maven2</url>
- </repository>
- <repository>
- <id>gwtquery-plugins</id>
- <url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
- </repository>
- <repository>
- <id>sonatype</id>
- <url>http://oss.sonatype.org/content/repositories/snapshots</url>
- <snapshots><enabled>true</enabled></snapshots>
- <releases><enabled>false</enabled></releases>
- </repository>
- <repository>
- <id>m.g.o</id>
- <url>http://maven.glassfish.org/content/groups/public/</url>
- </repository>
- </repositories>
-
- <scm>
- </scm>
-
- <issueManagement>
- </issueManagement>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-user</artifactId>
- <version>${gwtversion}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-dev</artifactId>
- <version>${gwtversion}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>${gwtversion}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.googlecode.gwtquery</groupId>
- <artifactId>gwtquery</artifactId>
- <version>${gQueryVersion}</version>
- <scope>provided</scope>
- </dependency>
- <!-- GWT 2.3.0 depends on these -->
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- <version>1.0.0.GA</version>
- </dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- <version>1.0.0.GA</version>
- <classifier>sources</classifier>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.1</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>gwt-maven-plugin</artifactId>
- <version>${gwtmaven}</version>
- <configuration>
- <logLevel>${gwt.loglevel}</logLevel>
- <style>${gwt.outputstyle}</style>
- <gwtVersion>${gwtversion}</gwtVersion>
- <compileReport>true</compileReport>
- <runTarget>${projectName}/${projectName}.html</runTarget>
- <hostedWebApp>${project.build.directory}/${project.build.finalName}</hostedWebApp>
- </configuration>
- <executions>
- <execution>
- <phase>prepare-package</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.8.1</version>
- <configuration>
- <additionalClasspathElements>
- <additionalClasspathElement>\${project.build.sourceDirectory}</additionalClasspathElement>
- <additionalClasspathElement>\${project.build.testSourceDirectory}</additionalClasspathElement>
- </additionalClasspathElements>
- <useManifestOnlyJar>false</useManifestOnlyJar>
- <forkMode>always</forkMode>
- <systemProperties>
- <property>
- <name>gwt.args</name>
- <value>-out target/gwt-tests</value>
- </property>
- <property>
- <!-- Setting this to true (default) causes a exception first time test are run Gwt issue_6443 -->
- <name>gwt.persistentunitcache</name>
- <value>false</value>
- </property>
- </systemProperties>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.7</version>
- <configuration>
- <downloadSources>true</downloadSources>
- <downloadJavadocs>false</downloadJavadocs>
- <additionalBuildcommands>
- <buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildcommand>
- <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
- <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
- <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>
- </additionalBuildcommands>
- <additionalProjectnatures>
- <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
- <projectnature>org.eclipse.jdt.core.javanature</projectnature>
- <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
- </additionalProjectnatures>
- <classpathContainers>
- <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>
- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
- <classpathContainer>org.eclipse.jdt.junit.JUNIT_CONTAINER/3</classpathContainer>
- </classpathContainers>
- </configuration>
- </plugin>
- <!-- GWT plugin does not copy the webapp folder in hosted mode -->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.5</version>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/webapp</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
- </build>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <name>${projectName} gwtquery project</name>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.source>1.6</maven.compiler.source>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <gQueryVersion>1.1.0</gQueryVersion>
+ <gwtversion>2.5.0-rc1</gwtversion>
+ <gwtmaven>2.4.0</gwtmaven>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>central</id>
+ <url>http://repo1.maven.org/maven2</url>
+ </repository>
+ <repository>
+ <id>gwtquery-plugins</id>
+ <url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
+ </repository>
+ <repository>
+ <id>sonatype</id>
+ <url>http://oss.sonatype.org/content/repositories/snapshots</url>
+ <snapshots><enabled>true</enabled></snapshots>
+ <releases><enabled>false</enabled></releases>
+ </repository>
+ <repository>
+ <id>m.g.o</id>
+ <url>http://maven.glassfish.org/content/groups/public/</url>
+ </repository>
+ </repositories>
+
+ <scm>
+ </scm>
+
+ <issueManagement>
+ </issueManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${gwtversion}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-dev</artifactId>
+ <version>${gwtversion}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${gwtversion}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.googlecode.gwtquery</groupId>
+ <artifactId>gwtquery</artifactId>
+ <version>${gQueryVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- GWT 2.3.0 depends on these -->
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <version>1.0.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <version>1.0.0.GA</version>
+ <classifier>sources</classifier>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>${gwtmaven}</version>
+ <configuration>
+ <logLevel>${gwt.loglevel}</logLevel>
+ <style>${gwt.outputstyle}</style>
+ <gwtVersion>${gwtversion}</gwtVersion>
+ <compileReport>true</compileReport>
+ <runTarget>${projectName}/${projectName}.html</runTarget>
+ <hostedWebApp>${project.build.directory}/${project.build.finalName}</hostedWebApp>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.8.1</version>
+ <configuration>
+ <additionalClasspathElements>
+ <additionalClasspathElement>\${project.build.sourceDirectory}</additionalClasspathElement>
+ <additionalClasspathElement>\${project.build.testSourceDirectory}</additionalClasspathElement>
+ </additionalClasspathElements>
+ <useManifestOnlyJar>false</useManifestOnlyJar>
+ <forkMode>always</forkMode>
+ <systemProperties>
+ <property>
+ <name>gwt.args</name>
+ <value>-out target/gwt-tests</value>
+ </property>
+ <property>
+ <!-- Setting this to true (default) causes a exception first time test are run Gwt issue_6443 -->
+ <name>gwt.persistentunitcache</name>
+ <value>false</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <additionalBuildcommands>
+ <buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildcommand>
+ <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
+ <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
+ <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>
+ </additionalBuildcommands>
+ <additionalProjectnatures>
+ <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
+ <projectnature>org.eclipse.jdt.core.javanature</projectnature>
+ <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
+ </additionalProjectnatures>
+ <classpathContainers>
+ <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>
+ <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
+ <classpathContainer>org.eclipse.jdt.junit.JUNIT_CONTAINER/3</classpathContainer>
+ </classpathContainers>
+ </configuration>
+ </plugin>
+ <!-- GWT plugin does not copy the webapp folder in hosted mode -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/webapp</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
+ </build>
+</project>
diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml
index 5476f939..13e1d579 100644
--- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml
+++ b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml
@@ -5,4 +5,4 @@
<inherits name='com.google.gwt.query.Query'/>
<entry-point class='${package}.${artifactId}.client.${projectName}'/>
</module>
-
+
diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java
index 891f5d3e..d5c178e8 100644
--- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java
+++ b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java
@@ -1,31 +1,31 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
-package ${package}.${artifactId}.client;
-import com.google.gwt.dom.client.Element;
-import com.google.gwt.query.client.Function;
-import static com.google.gwt.query.client.GQuery.*;
-
-
-import com.google.gwt.core.client.EntryPoint;
-
-/**
- * Example code for a GwtQuery application
- */
-public class ${projectName} implements EntryPoint {
-
- public void onModuleLoad() {
-
- ${symbol_dollar}("div")
- .hover(new Function() {
- public void f(Element e) {
- ${symbol_dollar}(e).css("color", "blue").stop(true, true).animate("fontSize: '+=10px'");
- }
- }, new Function() {
- public void f(Element e) {
- ${symbol_dollar}(e).css("color", "").stop(true, true).animate("fontSize: '-=10px'");
- }
- });
- }
-
-}
+package ${package}.${artifactId}.client;
+import com.google.gwt.dom.client.Element;
+import com.google.gwt.query.client.Function;
+import static com.google.gwt.query.client.GQuery.*;
+
+
+import com.google.gwt.core.client.EntryPoint;
+
+/**
+ * Example code for a GwtQuery application
+ */
+public class ${projectName} implements EntryPoint {
+
+ public void onModuleLoad() {
+
+ ${symbol_dollar}("div")
+ .hover(new Function() {
+ public void f(Element e) {
+ ${symbol_dollar}(e).css("color", "blue").stop(true, true).animate("fontSize: '+=10px'");
+ }
+ }, new Function() {
+ public void f(Element e) {
+ ${symbol_dollar}(e).css("color", "").stop(true, true).animate("fontSize: '-=10px'");
+ }
+ });
+ }
+
+}
diff --git a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java
index aef7cf9e..e007a0a6 100644
--- a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java
+++ b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java
@@ -23,7 +23,7 @@ public class ${projectName}Test extends GWTTestCase {
}
public void testOnModuleLoad() {
-
+
// Create a container in the document
final GQuery g = $("<div></div>").appendTo(document);
@@ -41,7 +41,7 @@ public class ${projectName}Test extends GWTTestCase {
public void run() {
// assert that the font size increases
assertTrue(fontSize(g) > size1);
-
+
// trigger mouse out event
final double size2 = fontSize(g);
g.trigger(Event.ONMOUSEOUT);
@@ -50,7 +50,7 @@ public class ${projectName}Test extends GWTTestCase {
// assert that the font size decreases
assertTrue(fontSize(g) < size2);
g.remove();
-
+
// finish the test
finishTest();
}