You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by si...@apache.org on 2006/06/28 21:33:12 UTC

svn commit: r417855 - in /cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl: build.xml pom.xml

Author: simoneg
Date: Wed Jun 28 12:33:12 2006
New Revision: 417855

URL: http://svn.apache.org/viewvc?rev=417855&view=rev
Log:
COCOON-1872 : added ant script and its call from the pom so that dojo is correctly placed in ajax now.

Added:
    cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/build.xml
Modified:
    cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/pom.xml

Added: cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/build.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/build.xml?rev=417855&view=auto
==============================================================================
--- cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/build.xml (added)
+++ cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/build.xml Wed Jun 28 12:33:12 2006
@@ -0,0 +1,15 @@
+<project name="cocoon-ajax-dojo" default="unzip-dojo" basedir=".">
+  <target name="unzip-dojo" description="Uncompressing dojo zip file and include the content into the ajax jar file" >
+  	<!-- FIXME : Use maven built-in properties to locate source and destination folders -->
+    <property name="srcDir" location="src/main/resources/org/apache/cocoon/dojo/resources"/>
+    <property name="destDir" location="target/classes/org/apache/cocoon/dojo/resources"/>
+    <unzip dest="${destDir}">
+      <fileset dir="${srcDir}">
+        <include name="dojo-*.zip"/>
+      </fileset>
+    </unzip>
+    <delete>
+      <fileset dir="${destDir}" includes="dojo-*.zip"/>
+    </delete>
+  </target>
+</project>
\ No newline at end of file

Modified: cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/pom.xml?rev=417855&r1=417854&r2=417855&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/pom.xml (original)
+++ cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/pom.xml Wed Jun 28 12:33:12 2006
@@ -36,4 +36,27 @@
       <version>2.2.0-SNAPSHOT</version>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>process-resources</phase>
+            <configuration>
+              <tasks>
+                <ant antfile="${basedir}/build.xml" inheritRefs="true">
+                  <target name="unzip-dojo"/>
+                </ant>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>