]> source.dussan.org Git - sonarqube.git/commitdiff
fix animal-sniffer in sonar-core-plugin
authorsimonbrandhof <simon.brandhof@gmail.com>
Thu, 2 Dec 2010 17:35:04 +0000 (17:35 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Thu, 2 Dec 2010 17:35:04 +0000 (17:35 +0000)
plugins/sonar-core-plugin/GWT-Clouds.sh [deleted file]
plugins/sonar-core-plugin/GWT-CoverageViewer.sh [deleted file]
plugins/sonar-core-plugin/GWT-DefaultSourceViewer.sh [deleted file]
plugins/sonar-core-plugin/GWT-DuplicationsViewer.sh [deleted file]
plugins/sonar-core-plugin/GWT-Hotspots.sh [deleted file]
plugins/sonar-core-plugin/GWT-TestsViewer.sh [deleted file]
plugins/sonar-core-plugin/pom.xml

diff --git a/plugins/sonar-core-plugin/GWT-Clouds.sh b/plugins/sonar-core-plugin/GWT-Clouds.sh
deleted file mode 100755 (executable)
index a674604..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mvn gwt:run -DrunTarget=org.sonar.plugins.core.clouds.GwtClouds/test.html
\ No newline at end of file
diff --git a/plugins/sonar-core-plugin/GWT-CoverageViewer.sh b/plugins/sonar-core-plugin/GWT-CoverageViewer.sh
deleted file mode 100755 (executable)
index fccc7aa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mvn gwt:run -DrunTarget=org.sonar.plugins.core.coverageviewer.CoverageViewer/test.html
\ No newline at end of file
diff --git a/plugins/sonar-core-plugin/GWT-DefaultSourceViewer.sh b/plugins/sonar-core-plugin/GWT-DefaultSourceViewer.sh
deleted file mode 100755 (executable)
index a8f9569..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mvn gwt:run -DrunTarget=org.sonar.plugins.core.defaultsourceviewer.GwtDefaultSourceViewer/test.html
\ No newline at end of file
diff --git a/plugins/sonar-core-plugin/GWT-DuplicationsViewer.sh b/plugins/sonar-core-plugin/GWT-DuplicationsViewer.sh
deleted file mode 100755 (executable)
index 28d6abe..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mvn gwt:run -DrunTarget=org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer/test.html
\ No newline at end of file
diff --git a/plugins/sonar-core-plugin/GWT-Hotspots.sh b/plugins/sonar-core-plugin/GWT-Hotspots.sh
deleted file mode 100755 (executable)
index a659c47..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mvn gwt:run -DrunTarget=org.sonar.plugins.core.hotspots.GwtHotspots/test.html
\ No newline at end of file
diff --git a/plugins/sonar-core-plugin/GWT-TestsViewer.sh b/plugins/sonar-core-plugin/GWT-TestsViewer.sh
deleted file mode 100755 (executable)
index 2ee40ce..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mvn gwt:run -DrunTarget=org.sonar.plugins.core.testdetailsviewer.TestsViewer/test.html
\ No newline at end of file
index 6bca3f0fc51ddc260920cb3651ff5947cbd33bbe..e35b4c27726a4fb8383cee0fa402e54ee006a793 100644 (file)
       <artifactId>sonar-testing-harness</artifactId>
       <scope>test</scope>
     </dependency>
+
+    <!-- only for animal-sniffer (see profile check-java-api -->
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-gwt-api</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.gwt</groupId>
+      <artifactId>gwt-user</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.gwt</groupId>
+      <artifactId>gwt-incubator</artifactId>
+      <scope>provided</scope>
+    </dependency>
+
   </dependencies>
 
   <build>
 
     <plugins>
       <plugin>
-         <groupId>org.apache.maven.plugins</groupId>
-         <artifactId>maven-dependency-plugin</artifactId>
-         <executions>
-           <execution>
-             <id>unpack</id>
-             <phase>prepare-package</phase>
-             <goals>
-               <goal>unpack</goal>
-             </goals>
-             <configuration>
-               <artifactItems>
-                 <artifactItem>
-                   <groupId>org.codehaus.sonar</groupId>
-                   <artifactId>sonar-core-gwt</artifactId>
-                   <version>${project.version}</version>
-                   <type>jar</type>
-                   <overWrite>false</overWrite>
-                   <outputDirectory>${project.build.outputDirectory}</outputDirectory>
-                   <includes>**/*</includes>
-                   <excludes>META-INF/*</excludes>
-                 </artifactItem>
-               </artifactItems>
-             </configuration>
-           </execution>
-         </executions>
-       </plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>unpack</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>org.codehaus.sonar</groupId>
+                  <artifactId>sonar-core-gwt</artifactId>
+                  <version>${project.version}</version>
+                  <type>jar</type>
+                  <overWrite>false</overWrite>
+                  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
+                  <includes>**/*</includes>
+                  <excludes>META-INF/*</excludes>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>