Author: sebb
Date: Mon Mar  5 13:28:22 2007
New Revision: 514871

URL: http://svn.apache.org/viewvc?view=rev&rev=514871
Log:
Make the svnant taskdef optional by enclosing it in the target that uses it

Modified:
    jakarta/jmeter/branches/rel-2-2/build.xml

Modified: jakarta/jmeter/branches/rel-2-2/build.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/build.xml?view=diff&rev=514871&r1=514870&r2=514871
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/build.xml (original)
+++ jakarta/jmeter/branches/rel-2-2/build.xml Mon Mar  5 13:28:22 2007
@@ -1655,13 +1655,14 @@
     </junitreport>
   </target>
 
-  <path id="svn.classpath">
-       <pathelement location="${lib.opt}/svnant.jar"/>
-       <pathelement location="${lib.opt}/svnClientAdapter.jar"/>
-       <pathelement location="${lib.opt}/svnjavahl.jar"/>
-  </path>
-  <taskdef resource="svntask.properties" classpathref="svn.classpath"/>
-    <target name="svnCheck" description="--> description">
+    <target name="svnCheck" description="Use SVN to get the current revision">
+         <path id="svn.classpath">
+               <pathelement location="${lib.opt}/svnant.jar"/>
+               <pathelement location="${lib.opt}/svnClientAdapter.jar"/>
+               <pathelement location="${lib.opt}/svnjavahl.jar"/>
+         </path>
+      <!-- The task def is nested here so that a missing jar only causes an 
error if the task is used -->
+         <taskdef resource="svntask.properties" classpathref="svn.classpath"/>
        <svn javahl="true">
           <status path="build.xml" 
                textStatusProperty="testStatus.textStatus"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to