public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-util/findbugs/files/launchers: findbugs findbugs2 fbwrap fb
@ 2015-03-14 15:11 James Le Cuirot (chewi)
  0 siblings, 0 replies; only message in thread
From: James Le Cuirot (chewi) @ 2015-03-14 15:11 UTC (permalink / raw
  To: gentoo-commits

chewi       15/03/14 15:11:23

  Added:                findbugs findbugs2 fbwrap fb
  Log:
  Version bump. Proper launcher scripts added. All HTML documentation
  now generated. Reassigning to java herd as this is a tricky package to
  get right, even for us.
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)

Revision  Changes    Path
1.1                  dev-util/findbugs/files/launchers/findbugs

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/findbugs?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/findbugs?rev=1.1&content-type=text/plain

Index: findbugs
===================================================================
escape_arg() {
	echo "$1" | sed -e "s,\\([\\\"'         ]\\),\\\\\\1,g"
}

# Set defaults
fb_mainclass="edu.umd.cs.findbugs.LaunchAppropriateUI"
user_jvmargs=''
ea_arg=''
debug_arg=''
conservespace_arg=''
user_props=''

# Handle command line arguments.
while [ $# -gt 0 ]; do
	case $1 in
	-gui)
		# this is the default
		;;

	-gui1)
		user_props="-Dfindbugs.launchUI=1 $user_props"
		;;

	-textui)
		fb_mainclass="edu.umd.cs.findbugs.FindBugs2"
		;;

	-jvmArgs)
		shift
		user_jvmargs="$1"
		;;
		
	-ea)
		ea_arg='-ea'
		;;

	-maxHeap)
		shift
		fb_maxheap="-Xmx$1m"
		;;

	-debug)
		debug_arg="-Dfindbugs.debug=true"
		;;

	-conserveSpace)
		conservespace_arg="-Dfindbugs.conserveSpace=true"
		;;

	-property)
		shift
		user_props="-D$1 $user_props"
		;;
	
	-D*=*)
		user_props="$1 $user_props"
		;;

	-version)
		fb_mainclass=edu.umd.cs.findbugs.Version
		fb_appargs="-release"
		while [ $# -gt 0 ]; do
			shift
		done
		;;

	-help)
		fb_mainclass="edu.umd.cs.findbugs.ShowHelp"
		;;

	# All unrecognized arguments will be accumulated and
	# passed to the application.
	*)
		fb_appargs="$fb_appargs `escape_arg "$1"`"
		;;
	esac

	shift
done

fb_maxheap=${fb_maxheap:-"-Xmx768m"}
fb_jvmargs="$fb_maxheap $user_jvmargs $debug_arg $conservespace_arg $user_props $ea_arg"
gjl_pkg_args="$fb_appargs"



1.1                  dev-util/findbugs/files/launchers/findbugs2

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/findbugs2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/findbugs2?rev=1.1&content-type=text/plain

Index: findbugs2
===================================================================
# Default UI is GUI2
fb_launchui="2"

#
# Stuff we're going to pass to the JVM as JVM arguments.
#
jvm_debug=""
jvm_maxheap="-Xmx768m"
jvm_ea=""
jvm_conservespace=""
jvm_user_props=""

#
# Process command line args until we hit one we don't recognize.
#
finishedArgs=false
while [ $# -gt 0 ] && [ "$finishedArgs" = "false" ]; do

	arg=$1

	case $arg in
		-textui)
			shift
			fb_launchui="0"
			;;

		-gui)
			shift
			fb_launchui="2"
			;;

		-gui1)
			shift
			fb_launchui="1"
			;;

		-maxHeap)
			shift
			jvm_maxheap="-Xmx$1m"
			shift
			;;

		-ea)
			shift
			jvm_ea="-ea"
			;;

		-debug)
			shift
			jvm_debug="-Dfindbugs.debug=true"
			;;

		-conserveSpace)
			shift
			jvm_conservespace="-Dfindbugs.conserveSpace=true"
			;;

		-property)
			shift
			jvm_user_props="-D$1 $jvm_user_props"
			shift
			;;
	
		-D*=*)
			jvm_user_props="$1 $user_props"
			shift
			;;

		-version)
			shift
			fb_launchui="version"
			;;

		-help)
			shift
			fb_launchui="help"
			;;

		# All arguments starting from the first unrecognized arguments
		# are passed on to the Java app.
		*)
			finishedArgs=true
			;;
	esac

done

fb_mainclass="edu.umd.cs.findbugs.LaunchAppropriateUI"
fb_jvmargs="$jvm_debug $jvm_maxheap $jvm_ea $jvm_conservespace $jvm_user_props -Dfindbugs.launchUI=$fb_launchui"



1.1                  dev-util/findbugs/files/launchers/fbwrap

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/fbwrap?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/fbwrap?rev=1.1&content-type=text/plain

Index: fbwrap
===================================================================
fb_mainclass="$1"
unset fb_jvmargs
shift



1.1                  dev-util/findbugs/files/launchers/fb

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/fb?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/findbugs/files/launchers/fb?rev=1.1&content-type=text/plain

Index: fb
===================================================================
escape_arg() {
	echo "$1" | sed -e "s,\\([\\\"'         ]\\),\\\\\\1,g"
}

# Set defaults
fb_mainclass="edu.umd.cs.findbugs.workflow.FB"
user_jvmargs=''
ea_arg=''
debug_arg=''
conservespace_arg=''
user_props=''

# Handle command line arguments.
while [ $# -gt 0 ]; do
	case $1 in
	-textui)
		fb_mainclass="edu.umd.cs.findbugs.FindBugs2"
		;;

	-jvmArgs)
		shift
		user_jvmargs="$1"
		;;
		
	-ea)
		ea_arg='-ea'
		;;

	-maxHeap)
		shift
		fb_maxheap="-Xmx$1m"
		;;

	-debug)
		debug_arg="-Dfindbugs.debug=true"
		;;

	-conserveSpace)
		conservespace_arg="-Dfindbugs.conserveSpace=true"
		;;

	-property)
		shift
		user_props="-D$1 $user_props"
		;;
	
	-D*=*)
		user_props="$1 $user_props"
		;;

	-version)
		fb_mainclass=edu.umd.cs.findbugs.Version
		fb_appargs="-release"
		while [ $# -gt 0 ]; do
			shift
		done
		;;

	-help)
		fb_mainclass="edu.umd.cs.findbugs.ShowHelp"
		;;

	# All unrecognized arguments will be accumulated and
	# passed to the application.
	*)
		fb_appargs="$fb_appargs `escape_arg "$1"`"
		;;
	esac

	shift
done

fb_maxheap=${fb_maxheap:-"-Xmx768m"}
fb_jvmargs="$fb_maxheap $user_jvmargs $debug_arg $conservespace_arg $user_props $ea_arg"
gjl_pkg_args="$fb_appargs"





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-14 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-14 15:11 [gentoo-commits] gentoo-x86 commit in dev-util/findbugs/files/launchers: findbugs findbugs2 fbwrap fb James Le Cuirot (chewi)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox