incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r656572 - in /incubator/sling/trunk/extensions/dojo: ./ pom.xml
Date Thu, 15 May 2008 09:39:24 GMT
Author: bdelacretaz
Date: Thu May 15 02:39:24 2008
New Revision: 656572

URL: http://svn.apache.org/viewvc?rev=656572&view=rev
Log:
store dojo download in local download-cache dir, outside of target dir, to avoid downloading
it on every clean build

Modified:
    incubator/sling/trunk/extensions/dojo/   (props changed)
    incubator/sling/trunk/extensions/dojo/pom.xml

Propchange: incubator/sling/trunk/extensions/dojo/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu May 15 02:39:24 2008
@@ -1,9 +1,5 @@
 target
-sling
 bin
-logs
-jackrabbit-repository
-derby.log
 *.iml
 *.ipr
 *.iws
@@ -11,4 +7,5 @@
 .project
 .classpath
 .externalToolBuilders
+download-cache
 maven-eclipse.xml

Modified: incubator/sling/trunk/extensions/dojo/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/dojo/pom.xml?rev=656572&r1=656571&r2=656572&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/dojo/pom.xml (original)
+++ incubator/sling/trunk/extensions/dojo/pom.xml Thu May 15 02:39:24 2008
@@ -51,6 +51,7 @@
 
     <!-- Dojo Toolkit version and name -->
     <properties>
+        <dojo.download.dir>./download-cache</dojo.download.dir>
         <dojo.target>target/dojo</dojo.target>
         <dojo.version>release-1.1.0</dojo.version>
         <dojo.name>dojo-${dojo.version}-src.tar.gz</dojo.name>
@@ -59,7 +60,8 @@
     <build>
         <plugins>
         
-            <!--  Dynamically download the Dojo Toolkit while building -->
+            <!-- Dynamically download the Dojo Toolkit while building -->
+            <!-- And store it in . so that it stays available after mvn clean -->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-antrun-plugin</artifactId>
@@ -68,12 +70,13 @@
                         <phase>process-resources</phase>
                         <configuration>
                             <tasks>
+                                <mkdir dir="${dojo.download.dir}" />
                                 <mkdir dir="${dojo.target}" />
                                 <get
                                     src="http://download.dojotoolkit.org/${dojo.version}/${dojo.name}"
-                                    dest="${dojo.target}/${dojo.name}"
+                                    dest="${dojo.download.dir}/${dojo.name}"
                                     usetimestamp="true" />
-                                <untar src="target/dojo/${dojo.name}"
+                                <untar src="${dojo.download.dir}/${dojo.name}"
                                     dest="${dojo.target}"
                                     compression="gzip" />
                                 <copy todir="${dojo.target}/dojo-${dojo.version}-src/">



Mime
View raw message