[Yanel-commits] rev 44994 - public/yanel/contributions/realms/foaf

guillaume at wyona.com guillaume at wyona.com
Tue Oct 13 15:06:21 CEST 2009


Author: guillaume
Date: 2009-10-13 15:06:21 +0200 (Tue, 13 Oct 2009)
New Revision: 44994

Modified:
   public/yanel/contributions/realms/foaf/build.xml
Log:
Now using Yanel's new default generic Ant build script for realms which does the same as the specific ones and more, e.g. it supports:
- a standalone 'clean' task
- full support for realm's binary and source JAR build artifacts: building, patching into the app server webapp, Maven repo upload, ...
- building under Eclipse!

Issue: 6942


Modified: public/yanel/contributions/realms/foaf/build.xml
===================================================================
--- public/yanel/contributions/realms/foaf/build.xml	2009-10-13 12:46:49 UTC (rev 44993)
+++ public/yanel/contributions/realms/foaf/build.xml	2009-10-13 13:06:21 UTC (rev 44994)
@@ -1,52 +1,7 @@
-<?xml version="1.0"?>
+<project name="yanel--foaf-realm">
+  <import file="${yanel.source.home}/src/build/realms/realm.build.xml"/>
 
-<project name="yanel-realm" default="compile">
-
-  <import file="src/build/dependencies.xml"/>
-
-  <target name="init" depends="dependencies">
-    <dirname property="realm.home.dir" file="${ant.file}"/>
-
-    <property file="src/build/local.build.properties"/>
-    <property file="src/build/build.properties"/>
-
-    <property name="realm.build.dir" value="${realm.home.dir}/build"/>
-    <property name="realm.classes.dir" value="${realm.build.dir}/classes"/>
-    <property name="realm.lib.dir" value="${realm.build.dir}/lib"/>
-    <property name="realm.java.dir" value="${realm.home.dir}/src/java"/>
-
-    <path id="classpath">
-      <pathelement path="${maven2.cp}"/>
-<!--
-      <pathelement path="${maven2.realm.cp}"/>
--->
-    </path>
-  </target>
-
-  <target name="compile" depends="init">
-    <echo>Compile java sources of Yanel website realm!</echo>
-
-    <mkdir dir="${realm.classes.dir}"/>
-    <javac srcdir="${realm.java.dir}" destdir="${realm.classes.dir}"
-      classpathref="classpath"
-      debug="true"
-    />
-    <mkdir dir="${realm.lib.dir}"/>
-    <jar destfile="${realm.lib.dir}/yanel-realm-${realm.name}-${realm.version}.jar"
-      basedir="${realm.classes.dir}"
-    />
-  </target>
-
-  <target name="copy-dependencies" depends="init">
-    <echo>Copy dependencies of realm Yanel Website</echo>
-    <copy todir="${build.dir}/webapps/${servlet.context.prefix}/WEB-INF/lib">
-      <fileset refid="maven2.realm.fileset"/>
-      <mapper type="flatten"/>
-    </copy>
-  </target>
-
   <target name="import" depends="init">
     <echo>Import FOAF files: NOT implemented yet!</echo>
   </target>
-
 </project>



More information about the Yanel-commits mailing list