[testng] 54/355: Fixed dependencies for 4 targets in build.xml

Eugene Zhukov eugene-guest at moszumanska.debian.org
Tue Aug 18 10:19:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.

commit b5e338cd29545bad3e2d7e2f8d095fbc1986a58e
Author: The Main Function (Bryan) <bryan at themainfunction.com>
Date:   Sun Mar 9 17:01:56 2014 -0500

    Fixed dependencies for 4 targets in build.xml
    
    The targets 'tests', 'test-ant', and 'javadocs' all fail without running the
    target 'build' first, since they rely on the testng.jar to run. The target
    'build' has been added as a dependency to each of these.
    
    The target 'tests' had previously listed 'compile' as a dependency, but this
    has been removed since 'build' covers this already.
    
    Another target, 'create-jar', requires the directory target/classes in order
    not to fail, and requires the testng classes to make a meaningful jar. It works
    properly once the target 'compile' has been run, so 'compile' is now added to
    its dependency list.
---
 build.xml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/build.xml b/build.xml
index a64982f..63477cc 100644
--- a/build.xml
+++ b/build.xml
@@ -113,11 +113,11 @@
     <ant inheritall="no" antfile="examples/build.xml" />
   </target>
 
-  <target name="tests" depends="compile" description="runs all JDK5 tests with JDK5 distro">
+  <target name="tests" depends="build" description="runs all JDK5 tests with JDK5 distro">
     <ant inheritall="no" antfile="build-tests.xml" />
   </target>
   
-  <target name="test-ant">
+  <target name="test-ant" depends="build">
     <echo message="                                 -- Testing ant testng task functionality --" />
     <ant inheritall="no" antfile="build-ant.xml" />
   </target>
@@ -126,7 +126,7 @@
   <!-- Documentation                                                        -->
   <!-- ==================================================================== -->
 
-  <target name="javadocs" depends="javadocs-current" />
+  <target name="javadocs" depends="build,javadocs-current" />
 
   <target name="doclava">
     <javadoc
@@ -248,7 +248,8 @@
     </zip>
   </target>
 
-  <target name="create-jar" description="Create a jar file with the Testng classes and nothing else" >
+  <target name="create-jar" description="Create a jar file with the Testng classes and nothing else" 
+          depends="compile">
     <delete file="${jar.file}" />
     <jar destfile="${jar.file}" >
       <manifest>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git



More information about the pkg-java-commits mailing list