Revision: 14915
http://gate.svn.sourceforge.net/gate/?rev=14915&view=rev
Author: markagreenwood
Date: 2012-01-06 17:06:32 +0000 (Fri, 06 Jan 2012)
Log Message:
-----------
a simple build file that should automagically spot new plugins
Added Paths:
-----------
plugins/trunk/obsolete/build.xml
Added: plugins/trunk/obsolete/build.xml
===================================================================
--- plugins/trunk/obsolete/build.xml (rev 0)
+++ plugins/trunk/obsolete/build.xml 2012-01-06 17:06:32 UTC (rev 14915)
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<!-- $Id$ -->
+<project name="Obsolete" default="distro" basedir=".">
+ <description>
+ Builds the Obsolete plugins
+ </description>
+
+ <property name="gate.home" location="${user.home}/gate-top/externals/gate" />
+
+ <!-- load ant-contrib for the "if" task -->
+ <taskdef resource="net/sf/antcontrib/antlib.xml" >
+ <classpath>
+ <pathelement location="${gate.home}/lib/ant-contrib-1.0b2.jar"/>
+ </classpath>
+ </taskdef>
+
+ <dirset id="plugins.to.build" dir="." includes="*"/>
+
+ <target name="build">
+ <for param="plugin">
+ <path>
+ <dirset refid="plugins.to.build" />
+ </path>
+ <sequential>
+ <if>
+ <available file="@{plugin}/build.xml" />
+ <then>
+ <echo>Building plugin @{plugin}</echo>
+ <ant dir="@{plugin}" inheritAll="false" target="build" />
+ </then>
+ </if>
+ </sequential>
+ </for>
+ </target>
+
+ <target name="distro.prepare">
+ <for param="plugin">
+ <path>
+ <dirset refid="plugins.to.build" />
+ </path>
+ <sequential>
+ <if>
+ <available file="@{plugin}/build.xml" />
+ <then>
+ <echo>Preparing plugin @{plugin}</echo>
+ <ant dir="@{plugin}" inheritAll="false" target="distro.prepare" />
+ </then>
+ </if>
+ </sequential>
+ </for>
+ </target>
+
+ <target name="clean">
+ <for param="plugin">
+ <path>
+ <dirset refid="plugins.to.build" />
+ </path>
+ <sequential>
+ <if>
+ <available file="@{plugin}/build.xml" />
+ <then>
+ <echo>Cleaning plugin @{plugin}</echo>
+ <ant dir="@{plugin}" inheritAll="false" target="clean" />
+ </then>
+ </if>
+ </sequential>
+ </for>
+ </target>
+
+ <target name="distro" depends="build, distro.prepare">
+ <echo file="site.xml" message="<UpdateSite>" append="false" />
+ <for param="plugin">
+ <path>
+ <dirset refid="plugins.to.build" />
+ </path>
+ <sequential>
+ <if>
+ <available file="@{plugin}/creole.xml" />
+ <then>
+ <var name="plugin.dir" unset="true" />
+ <basename property="plugin.dir" file="@{plugin}" />
+ <echo>Adding plugin ${plugin.dir} to site.xml</echo>
+ <echoxml file="site.xml" append="true">
+ <CreolePlugin url="${plugin.dir}" />
+ </echoxml>
+ </then>
+ </if>
+ </sequential>
+ </for>
+ <echo file="site.xml" message="</UpdateSite>" append="true" />
+ </target>
+
+</project>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs