You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/04/25 17:19:38 UTC

svn commit: r651628 - in /incubator/sling/trunk/extensions/dojo: pom.xml src/main/resources/dijit/ src/main/resources/dojo/ src/main/resources/dojox/

Author: fmeschbe
Date: Fri Apr 25 08:19:37 2008
New Revision: 651628

URL: http://svn.apache.org/viewvc?rev=651628&view=rev
Log:
Remove the Dojo Toolkit Source from our SVN Repository.
Download the toolkit at build time instead

Removed:
    incubator/sling/trunk/extensions/dojo/src/main/resources/dijit/
    incubator/sling/trunk/extensions/dojo/src/main/resources/dojo/
    incubator/sling/trunk/extensions/dojo/src/main/resources/dojox/
Modified:
    incubator/sling/trunk/extensions/dojo/pom.xml

Modified: incubator/sling/trunk/extensions/dojo/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/dojo/pom.xml?rev=651628&r1=651627&r2=651628&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/dojo/pom.xml (original)
+++ incubator/sling/trunk/extensions/dojo/pom.xml Fri Apr 25 08:19:37 2008
@@ -49,8 +49,42 @@
         </url>
     </scm>
 
+    <!-- Dojo Toolkit version and name -->
+    <properties>
+        <dojo.target>target/dojo</dojo.target>
+        <dojo.version>release-1.1.0</dojo.version>
+        <dojo.name>dojo-${dojo.version}.tar.gz</dojo.name>
+    </properties>
+
     <build>
         <plugins>
+        
+            <!--  Dynamically download the Dojo Toolkit while building -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>process-resources</phase>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${dojo.target}" />
+                                <get
+                                    src="http://download.dojotoolkit.org/${dojo.version}/${dojo.name}"
+                                    dest="${dojo.target}/${dojo.name}"
+                                    usetimestamp="true" />
+                                <untar src="target/dojo/${dojo.name}"
+                                    dest="${dojo.target}"
+                                    compression="gzip" />
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            
             <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
@@ -60,6 +94,11 @@
                         <Export-Package>
                             <!-- Nothing to Export -->
                         </Export-Package>
+                        
+                        <!-- Include the downloaded Dojo Toolkit -->
+                        <Include-Resource>
+                            ${dojo.target}/dojo-${dojo.version},{maven-resources}
+                        </Include-Resource>
 
                         <!-- initial content to be loaded on bundle installation -->
                         <Sling-Initial-Content>