| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ --> |
| |
| <project default="java:compile" |
| xmlns:j="jelly:core" |
| xmlns:u="jelly:util" |
| xmlns:maven="jelly:maven" |
| xmlns:deploy="deploy" |
| xmlns:ant="jelly:ant"> |
| |
| <postGoal name="java:compile"> |
| |
| <!-- Create zip for axis2-idea-plugin --> |
| <mkdir dir="target/plugin"/> |
| <mkdir dir="target/plugin/axis2-idea-plugin"/> |
| <mkdir dir="target/plugin/axis2-idea-plugin/META-INF"/> |
| <mkdir dir="target/plugin/axis2-idea-plugin/lib"/> |
| <mkdir dir="target/plugin/axis2-idea-plugin/classes/icons"/> |
| <mkdir dir="target/plugin/axis2-idea-plugin/classes"/> |
| |
| <ant:copy todir="target/plugin/axis2-idea-plugin/classes"> |
| <ant:fileset dir="target/classes"/> |
| </ant:copy> |
| <ant:copy todir="target/plugin/axis2-idea-plugin/classes/icons"> |
| <ant:fileset dir="plugin/icons"/> |
| </ant:copy> |
| <ant:copy todir="target/plugin/axis2-idea-plugin/META-INF"> |
| <ant:fileset dir="plugin/META-INF"/> |
| </ant:copy> |
| |
| |
| <j:forEach var="depItem" items="${pom.getDependencies()}"> |
| <j:if test="${depItem.getType().equalsIgnoreCase('jar')}"> |
| <j:if test="${depItem.getGroupId() != 'com.intellij'}"> |
| <j:set var="groupId" value="${depItem.getGroupId()}"/> |
| <j:set var="artifactId" value="${depItem.getArtifactId()}"/> |
| <j:set var="version" value="${depItem.getVersion()}"/> |
| <copy overwrite="yes" |
| file="${maven.repo.local}/${groupId}/jars/${artifactId}-${version}.jar" |
| tofile="target/plugin/axis2-idea-plugin/lib/${artifactId}-${version}.jar"/> |
| <j:remove var="groupId"/> |
| <j:remove var="artifactId"/> |
| <j:remove var="version"/> |
| </j:if> |
| </j:if> |
| </j:forEach> |
| |
| |
| <zip destfile="target/axis2-idea-plugin.zip" |
| basedir="target/plugin"/> |
| |
| |
| <ant:delete dir="target/plugin"/> |
| |
| </postGoal> |
| </project> |