[jboss-cvs] JBoss Profiler SVN: r461 - in branches/JBossProfiler2: doc and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jun 30 08:30:50 EDT 2008


Author: jesper.pedersen
Date: 2008-06-30 08:30:50 -0400 (Mon, 30 Jun 2008)
New Revision: 461

Added:
   branches/JBossProfiler2/src/etc/antlib.xml
Modified:
   branches/JBossProfiler2/build.xml
   branches/JBossProfiler2/doc/README.txt
Log:
Added antlib.xml support

Modified: branches/JBossProfiler2/build.xml
===================================================================
--- branches/JBossProfiler2/build.xml	2008-06-06 09:58:12 UTC (rev 460)
+++ branches/JBossProfiler2/build.xml	2008-06-30 12:30:50 UTC (rev 461)
@@ -104,10 +104,15 @@
             >
             <src path="${src.main.dir}"/>
         </javac>
+        <copy todir="${build.dir}/org/jboss/profiler/ant">
+            <fileset dir="${etc.dir}">
+               <include name="**/antlib.xml"/>
+            </fileset>
+        </copy>
         <jar destfile="${dist.dir}/${jboss-profiler-ant.jar}"
              basedir="${build.dir}"
              manifest="${etc.dir}/ant-manifest.mf"
-             includes="org/jboss/profiler/ant/**,org/jboss/profiler/shared/**"
+             includes="org/jboss/profiler/ant/**,org/jboss/profiler/shared/**,**/*.xml"
              excludes="**/*.java"/>
     </target>
 

Modified: branches/JBossProfiler2/doc/README.txt
===================================================================
--- branches/JBossProfiler2/doc/README.txt	2008-06-06 09:58:12 UTC (rev 460)
+++ branches/JBossProfiler2/doc/README.txt	2008-06-30 12:30:50 UTC (rev 461)
@@ -289,8 +289,13 @@
 -------------------
 The jboss-profiler-ant.jar file contains Ant tasks for the JBoss Profiler.
 
-The following tasks exists:
+Assuming that this file has been placed in in ${ant.home}/lib the following file will automatically load 
+the definitions of the tasks:
 
+ <project default="defaulttarget" xmlns:jboss-profiler="antlib:org.jboss.profiler.ant">
+
+Otherwise you can configure the Ant integration using the following task definitions:
+
  <taskdef name="enable" classname="org.jboss.profiler.ant.EnableProfilerTask"/>
  <taskdef name="disable" classname="org.jboss.profiler.ant.DisableProfilerTask"/>
  <taskdef name="startprofiler" classname="org.jboss.profiler.ant.StartProfilerTask"/>

Added: branches/JBossProfiler2/src/etc/antlib.xml
===================================================================
--- branches/JBossProfiler2/src/etc/antlib.xml	                        (rev 0)
+++ branches/JBossProfiler2/src/etc/antlib.xml	2008-06-30 12:30:50 UTC (rev 461)
@@ -0,0 +1,11 @@
+<antlib xmlns:current="ant:current">
+  <taskdef name="enable" classname="org.jboss.profiler.ant.EnableProfilerTask"/>
+  <taskdef name="disable" classname="org.jboss.profiler.ant.DisableProfilerTask"/>
+  <taskdef name="startprofiler" classname="org.jboss.profiler.ant.StartProfilerTask"/>
+  <taskdef name="stopprofiler" classname="org.jboss.profiler.ant.StopProfilerTask"/>
+  <taskdef name="clearsnapshots" classname="org.jboss.profiler.ant.ClearSnapshotsTask"/>
+  <taskdef name="gc" classname="org.jboss.profiler.ant.GCTask"/>
+  <taskdef name="save" classname="org.jboss.profiler.ant.SaveTask"/>
+  <taskdef name="add" classname="org.jboss.profiler.ant.AddClassesTask"/>
+  <taskdef name="remove" classname="org.jboss.profiler.ant.RemoveClassesTask"/>
+</antlib>




More information about the jboss-cvs-commits mailing list