Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2012 21:50:25 +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: r306767 - head/java/javavmwrapper/files
Message-ID:  <201210312150.q9VLoPEV039806@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Oct 31 21:50:25 2012
New Revision: 306767
URL: http://svn.freebsd.org/changeset/ports/306767

Log:
  Shut up noise when there is no JDK/JRE to register.
  
  Reviewed by:	glewis (maintainer)
  Feature safe:	yes

Modified:
  head/java/javavmwrapper/files/pkg-install.in

Modified: head/java/javavmwrapper/files/pkg-install.in
==============================================================================
--- head/java/javavmwrapper/files/pkg-install.in	Wed Oct 31 21:42:03 2012	(r306766)
+++ head/java/javavmwrapper/files/pkg-install.in	Wed Oct 31 21:50:25 2012	(r306767)
@@ -26,7 +26,7 @@ _find_expr='-depth 2 -regex .*/bin/java'
 for dir in ${_excl_dirs}; do
     _find_expr="${_find_expr} ! -regex ${dir}/bin/java"
 done
-for jvm in `cd "${LOCALBASE}" && find *jdk* *jre* ${_find_expr}`; do
+for jvm in `cd "${LOCALBASE}" && find *jdk* *jre* ${_find_expr} 2> /dev/null`; do
     if [ -x "${LOCALBASE}/${jvm}" ]; then
         "${PKG_PREFIX}"/bin/registervm "${LOCALBASE}/${jvm}" > /dev/null 2>&1
     fi



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