[Yanel-commits] rev 42613 - public/yanel/contributions/resources/soap

michi at wyona.com michi at wyona.com
Tue May 5 14:34:35 CEST 2009


Author: michi
Date: 2009-05-05 14:34:35 +0200 (Tue, 05 May 2009)
New Revision: 42613

Modified:
   public/yanel/contributions/resources/soap/build.xml
Log:
use generic build file

Modified: public/yanel/contributions/resources/soap/build.xml
===================================================================
--- public/yanel/contributions/resources/soap/build.xml	2009-05-05 09:19:48 UTC (rev 42612)
+++ public/yanel/contributions/resources/soap/build.xml	2009-05-05 12:34:35 UTC (rev 42613)
@@ -1,71 +1,3 @@
-<?xml version="1.0"?>
-
-<project name="yanel-resource" default="compile">
-
-  <import file="src/build/dependencies.xml"/>
-
-  <target name="init" description="Initialize build" depends="dependencies">
-    <echo>Initialize build</echo>
-
-    <dirname property="resource.home.dir" file="${ant.file}"/>
-    <echo>Resource Home Directory: ${resource.home.dir}</echo>
-
-    <property file="${resource.home.dir}/src/build/local.build.properties"/>
-    <property file="${resource.home.dir}/src/build/build.properties"/>
-
-    <path id="classpath">
-      <pathelement path="${maven2.cp}"/>
-    </path>
-    <property name="resource.build.dir" value="${resource.home.dir}/build"/>
-    <property name="resource.classes.dir" value="${resource.build.dir}/classes"/>
-    <property name="resource.lib.dir" value="${resource.build.dir}/lib"/>
-    <property name="resource.java.dir" value="${resource.home.dir}/src/java"/>
-  </target>
-
-  <target name="compile" description="Compile Java classes" depends="init">
-
-    <mkdir dir="${resource.classes.dir}"/>
-    <javac srcdir="${resource.java.dir}" destdir="${resource.classes.dir}"
-      classpathref="classpath"
-      debug="true"
-    />
-    <copy todir="${resource.classes.dir}/org/wyona/yanel/impl/resources/soap">
-      <fileset dir="${resource.home.dir}" includes="resource.xml,htdocs/**,yanel-htdocs/**"/>
-    </copy>
-    <mkdir dir="${resource.lib.dir}"/>
-    <jar destfile="${resource.lib.dir}/yanel-resource-${resource.name}-${resource.version}.jar"
-      basedir="${resource.classes.dir}"
-    />
-    <antcall target="install-jar"/>
-  </target>
-
-  <target name="clean" depends="init">
-    <delete dir="${resource.build.dir}"/>
-  </target>
-
-  <target name="copy-dependencies" depends="init">
-    <copy todir="${build.dir}/webapps/${servlet.context.prefix}/WEB-INF/lib">
-      <fileset refid="maven2.resource.fileset"/>
-      <mapper type="flatten"/>
-    </copy>
-  </target>
-
-  <target name="install-jar" description="Place jar file for this resource into local maven repository" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
-<!--
-  <target name="install-jar" description="Place jar file for this resource into local maven repository" depends="init, clean, compile" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
--->
-    <copy file="src/build/pom.xml" tofile="build/lib/pom.xml"/>
-
-    <replace file="build/lib/pom.xml" value="${resource.version}">
-      <replacetoken>@VERSION@</replacetoken>
-    </replace>
-    <replace file="build/lib/pom.xml" value="${resource.name}">
-      <replacetoken>@NAME@</replacetoken>
-    </replace>
-
-    <artifact:pom id="maven.project.core" file="build/lib/pom.xml"/>
-    <artifact:install file="build/lib/yanel-resource-${resource.name}-${resource.version}.jar">
-      <pom refid="maven.project.core"/>
-    </artifact:install>
-  </target>
+<project name="yanel-xml-resource">
+  <import file="${yanel.source.home}/src/build/resource-types/resource-type.build.xml"/>
 </project>



More information about the Yanel-commits mailing list