Created
June 14, 2010 19:20
-
-
Save oravecz/438147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>generate-resources</phase> | |
<configuration> | |
<tasks> | |
<property name="ringo.home" value="${basedir}/lib/ringojs"/> | |
<property name="webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/> | |
<property name="webinf.ringo" value="${basedir}/src/main/webapp/WEB-INF/ringojs"/> | |
<copy todir="${webinf.lib}" flatten="true"> | |
<fileset dir="${ringo.home}/lib" includes="**/*.jar"> | |
<exclude name="jetty/**"/> | |
<exclude name="jnr-posix/**"/> | |
<exclude name="jline*.jar"/> | |
<exclude name="junit*.jar"/> | |
</fileset> | |
<fileset dir="${ringo.home}/packages" includes="**/*.jar"/> | |
</copy> | |
<copy todir="${webinf.ringo}/modules"> | |
<fileset dir="${ringo.home}/modules"/> | |
</copy> | |
<copy todir="${webinf.ringo}/packages"> | |
<fileset dir="${ringo.home}/packages/" includes="**/lib/**"/> | |
<regexpmapper from=".*/lib/(.*)$" to="\1" handledirsep="true"/> | |
</copy> | |
</tasks> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.ant</groupId> | |
<artifactId>ant-apache-regexp</artifactId> | |
<version>1.8.1</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>jakarta-regexp</groupId> | |
<artifactId>jakarta-regexp</artifactId> | |
<version>1.4</version> | |
</dependency> | |
</dependencies> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment