You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by da...@apache.org on 2015/03/24 20:26:43 UTC

svn commit: r1668964 - in /aries/site/trunk: content/modules/esaanttask.mdtext templates/navigation.mdtext

Author: davidb
Date: Tue Mar 24 19:26:43 2015
New Revision: 1668964

URL: http://svn.apache.org/r1668964
Log:
Add documentation on the ESA Ant Task.

Committed on behalf of Kamesh Sampath with many thanks.

Added:
    aries/site/trunk/content/modules/esaanttask.mdtext
Modified:
    aries/site/trunk/templates/navigation.mdtext

Added: aries/site/trunk/content/modules/esaanttask.mdtext
URL: http://svn.apache.org/viewvc/aries/site/trunk/content/modules/esaanttask.mdtext?rev=1668964&view=auto
==============================================================================
--- aries/site/trunk/content/modules/esaanttask.mdtext (added)
+++ aries/site/trunk/content/modules/esaanttask.mdtext Tue Mar 24 19:26:43 2015
@@ -0,0 +1,53 @@
+Title:
+Notice:    Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+           .
+             http://www.apache.org/licenses/LICENSE-2.0
+           .
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.
+
+# ESA Ant Task
+This ant taskdef will help you to generate the Enterprise Subsystem Archive (*.esa) bundles, this could be used in traditional ant `taskdef` way in to the existing ant build scripts.
+
+# Getting Started
+Check out **Aries** project and from *esa-ant-task* project run `mvn clean install`, add the generated jar from the `target` directory to your ant classpath 
+e.g. ~/.ant/lib , or $ANT_HOME/lib etc.,
+
+The following example shows how this task could be integrated into an existing ant build script,
+
+     <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>
+

Modified: aries/site/trunk/templates/navigation.mdtext
URL: http://svn.apache.org/viewvc/aries/site/trunk/templates/navigation.mdtext?rev=1668964&r1=1668963&r2=1668964&view=diff
==============================================================================
--- aries/site/trunk/templates/navigation.mdtext (original)
+++ aries/site/trunk/templates/navigation.mdtext Tue Mar 24 19:26:43 2015
@@ -136,6 +136,9 @@
 		<a href="/modules/ebamavenpluginproject.html">EBA Maven Plugin </a> 
 	</div>
 	<div class="menuitem">
+		<a href="/modules/esaanttask.html">ESA Ant Task </a> 
+	</div>
+	<div class="menuitem">
 		<a href="/modules/esamavenpluginproject.html">ESA Maven Plugin </a> 
 	</div>
 	<div class="menuitem">