]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2300 Fix assembly
authorEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 24 Mar 2011 20:11:08 +0000 (23:11 +0300)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Tue, 29 Mar 2011 23:46:51 +0000 (03:46 +0400)
* Use CRLF for Windows and LF for Linix Scripts

* Partially fix permissions

sonar-application/COPYING
sonar-application/assembly.xml

index fc8a5de7edf437cdc98a216370faf7c757279bcb..0e4fa8aaf2049f54b1240fdefb4c1c8b93455d4f 100644 (file)
@@ -1,4 +1,4 @@
-                  GNU LESSER GENERAL PUBLIC LICENSE
+                  GNU LESSER GENERAL PUBLIC LICENSE
                        Version 3, 29 June 2007
 
  Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
index 1c34fdfa22653890b5efbf643c69dc5012d03959..324bc07cc1e86dd449fd8652e5c76983b1ce8902 100644 (file)
@@ -6,6 +6,7 @@
   </formats>
   <includeBaseDirectory>true</includeBaseDirectory>
   <dependencySets>
+    <!-- Libraries -->
     <dependencySet>
       <outputDirectory>lib</outputDirectory>
       <useTransitiveFiltering>true</useTransitiveFiltering>
@@ -18,6 +19,8 @@
         <exclude>org.codehaus.sonar.plugins:*</exclude>
         <exclude>org.codehaus.sonar.runtime:*</exclude>
       </excludes>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
     <dependencySet>
       <outputDirectory>lib/deprecated-maven-plugin</outputDirectory>
       <includes>
         <include>org.codehaus.sonar.runtime:sonar-core-maven-plugin</include>
       </includes>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
-
-    <dependencySet>
-      <outputDirectory>lib/core-plugins</outputDirectory>
-      <useTransitiveDependencies>false</useTransitiveDependencies>
-      <includes>
-        <include>org.codehaus.sonar.plugins:*</include>
-      </includes>
-    </dependencySet>
-
+    <!-- Plugins -->
     <dependencySet>
       <outputDirectory>lib/core-plugins</outputDirectory>
       <useTransitiveDependencies>false</useTransitiveDependencies>
       <includes>
         <include>org.codehaus.sonar.plugins:*</include>
       </includes>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
+    <!-- Server -->
     <dependencySet>
       <outputDirectory>war/sonar-server</outputDirectory>
       <includes>
         <include>org.codehaus.sonar:sonar-server</include>
       </includes>
       <unpack>true</unpack>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
+    <!-- JDBC drivers -->
     <dependencySet>
       <outputDirectory>extensions/jdbc-driver/mysql/</outputDirectory>
       <includes>
@@ -56,6 +59,8 @@
       </includes>
       <unpack>false</unpack>
       <scope>runtime</scope>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
     <dependencySet>
       <outputDirectory>extensions/jdbc-driver/derby/</outputDirectory>
@@ -64,6 +69,8 @@
       </includes>
       <unpack>false</unpack>
       <scope>runtime</scope>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
     <dependencySet>
       <outputDirectory>extensions/jdbc-driver/postgresql/</outputDirectory>
@@ -72,6 +79,8 @@
       </includes>
       <unpack>false</unpack>
       <scope>runtime</scope>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
     <dependencySet>
       <outputDirectory>extensions/jdbc-driver/mssql/</outputDirectory>
       </includes>
       <unpack>false</unpack>
       <scope>runtime</scope>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
     </dependencySet>
+    <!-- Java Service Wrapper -->
     <dependencySet>
       <outputDirectory>bin</outputDirectory>
       <includes>
         </excludes>
       </unpackOptions>
     </dependencySet>
-    <dependencySet>
-      <outputDirectory>lib</outputDirectory>
-      <includes>
-        <include>tanukisoft:wrapper</include>
-      </includes>
-      <unpack>false</unpack>
-      <scope>runtime</scope>
-    </dependencySet>
   </dependencySets>
 
   <fileSets>
+    <!-- Windows Scripts -->
+    <fileSet>
+      <directory>src/main/assembly</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>**/*.bat</include>
+        <include>**/*.cmd</include>
+      </includes>
+      <lineEnding>dos</lineEnding>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
+    </fileSet>
+    <!-- Linux Scripts -->
     <fileSet>
       <directory>src/main/assembly</directory>
       <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>**/*.sh</include>
+        <include>**/ant</include>
+        <include>**/antRun</include>
+      </includes>
+      <lineEnding>unix</lineEnding>
       <fileMode>0755</fileMode>
       <directoryMode>0755</directoryMode>
     </fileSet>
+    <!-- Other stuff -->
+    <fileSet>
+      <directory>src/main/assembly</directory>
+      <outputDirectory>/</outputDirectory>
+      <excludes>
+        <exclude>**/*.bat</exclude>
+        <exclude>**/*.cmd</exclude>
+        <exclude>**/*.sh</exclude>
+        <exclude>**/ant</exclude>
+        <exclude>**/antRun</exclude>
+      </excludes>
+      <fileMode>0644</fileMode>
+      <directoryMode>0755</directoryMode>
+    </fileSet>
+    <!-- Empty directories -->
     <fileSet>
       <directory>src/main/assembly</directory>
       <outputDirectory>extensions/jdbc-driver/oracle/</outputDirectory>
         <exclude>**/*</exclude>
       </excludes>
     </fileSet>
-       <fileSet>
+    <fileSet>
       <directory>src/main/assembly</directory>
       <outputDirectory>logs/</outputDirectory>
       <excludes>