[jboss-cvs] JBossAS SVN: r71980 - in trunk: thirdparty and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 10 17:50:13 EDT 2008


Author: pgier
Date: 2008-04-10 17:50:13 -0400 (Thu, 10 Apr 2008)
New Revision: 71980

Modified:
   trunk/build/build.xml
   trunk/thirdparty/pom.xml
Log:
[JBBUILD-453] Enable downloading of source jars in the thirdparty directory.

Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml	2008-04-10 21:29:21 UTC (rev 71979)
+++ trunk/build/build.xml	2008-04-10 21:50:13 UTC (rev 71980)
@@ -915,6 +915,8 @@
       depends="check.inhibit.downloads, set.proxy">
      
       <property name="maven.dir" value="${basedir}/../tools/maven"/>
+      <property name="thirdparty.maven.opts" value=""/>
+     
       <macrodef name="maven">
           <attribute name="goal" />
           <attribute name="basedir" />
@@ -934,8 +936,7 @@
                   </classpath>
                   <sysproperty key="classworlds.conf" value="${maven.dir}/bin/m2.conf" />
                   <sysproperty key="maven.home" value="${maven.dir}" />
-                  <arg value="--batch-mode" />
-                  <arg value="@{goal}" />
+                  <arg line="--batch-mode ${thirdparty.maven.opts} @{goal}" />
               </java>
           </sequential>
       </macrodef> 

Modified: trunk/thirdparty/pom.xml
===================================================================
--- trunk/thirdparty/pom.xml	2008-04-10 21:29:21 UTC (rev 71979)
+++ trunk/thirdparty/pom.xml	2008-04-10 21:50:13 UTC (rev 71980)
@@ -32,6 +32,7 @@
               <includedScopes>
                 <scope>compile</scope>
               </includedScopes>
+              <copySources>${copySourceJars}</copySources>
             </configuration>
           </execution>
           <execution>
@@ -46,6 +47,7 @@
               <includedScopes>
                 <scope>test</scope>
               </includedScopes>
+              <copySources>${copySourceJars}</copySources>
             </configuration>
           </execution>
         </executions>
@@ -1711,4 +1713,39 @@
     </dependency>
   </dependencies>
   
+  <profiles>
+    <profile>
+      <id>download-sources</id>
+      <activation>
+        <property>
+          <name>download.sources</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <version>2.0</version>
+            <executions>
+              <execution>
+                <id>download-sources</id>
+                <goals>
+                  <goal>sources</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+      <properties>
+        <copySourceJars>true</copySourceJars>
+      </properties>
+    </profile>
+  </profiles>
+  
+  <properties>
+    <copySourceJars>false</copySourceJars>
+  </properties>
+  
 </project>




More information about the jboss-cvs-commits mailing list