Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2017 23:31:18 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437838 - head/Mk
Message-ID:  <201704052331.v35NVI7a030530@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Apr  5 23:31:18 2017
New Revision: 437838
URL: https://svnweb.freebsd.org/changeset/ports/437838

Log:
  Implement test target for USE_ANT=yes.

Modified:
  head/Mk/bsd.java.mk

Modified: head/Mk/bsd.java.mk
==============================================================================
--- head/Mk/bsd.java.mk	Wed Apr  5 21:59:15 2017	(r437837)
+++ head/Mk/bsd.java.mk	Wed Apr  5 23:31:18 2017	(r437838)
@@ -393,6 +393,13 @@ do-build:
 					@(cd ${BUILD_WRKSRC}; \
 						${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET})
 .			endif
+.			if !target(do-test) && defined(TEST_TARGET)
+TEST_DEPENDS+=		${DEPEND_JAVA}
+TEST_DEPENDS+=		${ANT}:devel/apache-ant
+do-test:
+					@(cd ${TEST_WRKSRC}; \
+						${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${TEST_TARGET})
+.			endif
 .		endif
 
 #-----------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704052331.v35NVI7a030530>