Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://aries.apache.org/modules%2Fesaanttask
Kamesh Sampath
Index: trunk/content/modules/esaanttask
===================================================================
--- trunk/content/modules/esaanttask (revision 0)
+++ trunk/content/modules/esaanttask (working copy)
@@ -0,0 +1,46 @@
+Title: ESAAntTask
+# ESA Ant Task
+This ant taskdef will help you to generate the OSGI Enterprise Archive (*.esa)
bundles. This could be used in traditional ant taskdef way in to your build
scripts
+
+# Getting started
+Clone the Aries project and from esa-ant-task project run `mvn clean install`,
add the generated jar in the target directory to your ant classpath e.g.
~/.ant/lib , or $ANT_HOME/lib etc.,
+
+# Sample build file
+
+```xml
+
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ======================================================================
+
+
+ An ant example for esa-ant
+ A simple build file to demonstrate the use of esa-ant task
+
+
+ ====================================================================== -->
+<project name="An ant example for esa-ant" default="default">
+ <description>
+ A simple build file to demonstrate the use of esa-ant task
+ </description>
+
+ <taskdef name="esa" classname="org.apache.aries.ant.taskdefs.EsaTask" />
+
+ <target name="default" description="builds esa with supplied
SUBSYSTEM.MF">
+ <esa destfile="demo.esa" symbolicname="test-esa"
manifest="${basedir}/SUBSYSTEM.MF">
+ <fileset dir="/tmp/esa-ant-demo">
+ <include name="*.jar" />
+ </fileset>
+ </esa>
+ </target>
+
+ <target name="default2" description="generates the SUSBYSTEM.MF based
on esa contents">
+ <esa destfile="demo2.esa" symbolicname="test-esa"
generatemanifest="true">
+ <fileset dir="/tmp/esa-ant-demo">
+ <include name="*.jar" />
+ </fileset>
+ </esa>
+ </target>
+
+
+</project>
+```
\ No newline at end of file