Skip to content

Commit 25c8769

Browse files
author
Aaron O'Mullan
committed
Fix Java detector
1 parent a9f30d5 commit 25c8769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/cb.project/java/detector.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ $? = 0 ]; then
1111
fi
1212

1313
WORKSPACE=$1
14-
entry_point=$(${FGREP} " main(" -R ${WORKSPACE} | tr ':' '\n' | grep ".java" | head -n 1)
14+
entry_point=$(${FGREP} " public static void main" -R ${WORKSPACE} | tr ':' '\n' | grep ".java" | head -n 1)
1515

1616
if [ -f "$entry_point" ]; then
1717
echo "Java" && exit 0

0 commit comments

Comments
 (0)