mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
apps can find trick_icon, minor change to configure #938
This commit is contained in:
parent
1b43a82f53
commit
78ebc6fda3
@ -167,8 +167,8 @@ AC_DEFUN([AX_JAVA],[
|
||||
[AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([Trick requires javac version >= 1.8])
|
||||
])
|
||||
AC_PATH_PROG(MVN, mvn, mvn)
|
||||
AS_IF([test "$ac_cv_path_MVN" = "nomvn"],AC_MSG_ERROR([could not find mvn]),[])
|
||||
AC_PATH_PROG(MVN, mvn, nomvn)
|
||||
AS_IF([test "$ac_cv_path_MVN" = "nomvn"],AC_MSG_ERROR([could not find maven]),[])
|
||||
],[])
|
||||
])
|
||||
|
||||
|
4
configure
vendored
4
configure
vendored
@ -6137,7 +6137,7 @@ done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
test -z "$ac_cv_path_MVN" && ac_cv_path_MVN="mvn"
|
||||
test -z "$ac_cv_path_MVN" && ac_cv_path_MVN="nomvn"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
@ -6152,7 +6152,7 @@ fi
|
||||
|
||||
|
||||
if test "$ac_cv_path_MVN" = "nomvn"; then :
|
||||
as_fn_error $? "could not find mvn" "$LINENO" 5
|
||||
as_fn_error $? "could not find maven" "$LINENO" 5
|
||||
fi
|
||||
|
||||
fi
|
||||
|
@ -36,7 +36,7 @@ sub launch_java($$) {
|
||||
if ( $^O eq "darwin" ) {
|
||||
$command .= "\\
|
||||
-Xdock:name=\"$name\" \\
|
||||
-Xdock:icon=$java_dir/resources/trick_icon.png \\
|
||||
-Xdock:icon=$java_dir/build/classes/common/resources/trick_icon.png \\
|
||||
-Djava.net.preferIPv4Stack=true \\" ;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ if ( ! exists $ENV{TRICK_HOME} ) {
|
||||
if ( $^O eq "darwin" ) {
|
||||
$command = "java -classpath $ENV{TRICK_HOME}/bin/java/dist/*:$ENV{TRICK_HOME}/bin/java/lib/* \\
|
||||
-Xdock:name=\"Variable Counter\" \\
|
||||
-Xdock:icon=$ENV{TRICK_HOME}/bin/java/resources/trick_icon.png \\
|
||||
-Xdock:icon=$ENV{TRICK_HOME}/libexec/trick/java/build/classes/common/resources/trick_icon.png \\
|
||||
trick.vc.VariableCounter " . join (" " , @ARGV) ;
|
||||
} else {
|
||||
$command = "java -cp $ENV{TRICK_HOME}/bin/java/dist/*:$ENV{TRICK_HOME}/bin/java/lib/* trick.vc.VariableCounter " . join (" " , @ARGV) ;
|
||||
|
@ -1,6 +1,6 @@
|
||||
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../..)
|
||||
|
||||
all: ${TRICK_HOME}/libexec/trick/java/build
|
||||
all: ${TRICK_HOME}/libexec/trick/java/build resources
|
||||
@echo "[32mJava build successful[0m"
|
||||
|
||||
${TRICK_HOME}/libexec/trick/java/build:
|
||||
@ -10,4 +10,7 @@ javadoc:
|
||||
mvn javadoc:javadoc
|
||||
|
||||
clean:
|
||||
mvn clean
|
||||
mvn clean
|
||||
|
||||
resources: ${RESOURCES_DIR}/trick_icon.png: ${SRC_DIR}/trick/common/resources/trick_icon.png ${RESOURCES_DIR}
|
||||
@cp $< $@
|
Loading…
Reference in New Issue
Block a user