Skip to content

Commit 876d284

Browse files
authored
Merge branch 'master' into scopes
2 parents 0469e04 + b1d8975 commit 876d284

File tree

323 files changed

+18537
-12178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

323 files changed

+18537
-12178
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<classpathentry kind="src" path="src"/>
66
<classpathentry kind="src" path="generatedsrc"/>
77
<classpathentry kind="src" path="build/src/jsp"/>
8-
<classpathentry kind="lib" path="lib/bcel-5.2.jar"/>
8+
<classpathentry kind="lib" path="lib/bcel-6.0-20150726.222224-123.jar"/>
99
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jasper GF3"/>
1010
<classpathentry kind="lib" path="build/jrcs"/>
1111
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>

.mvn/wrapper/maven-wrapper.jar

48.4 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: java
22
jdk:
33
- oraclejdk8
4+
cache:
5+
directories:
6+
- $HOME/.m2
47
before_install:
58
- sudo apt-get update -qq
69
- sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs
@@ -16,5 +19,5 @@ addons:
1619
project:
1720
name: "OpenGrok/OpenGrok"
1821
description: "Build submitted via Travis CI"
19-
build_command_prepend: "mvn clean"
20-
build_command: "mvn -DskipTests=true compile"
22+
# build_command_prepend: "mvn clean"
23+
build_command: "mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile"

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017 release 0.13
2+
-------------------------------------------------
3+
4+
TBD
5+
6+
17
May 2014 update 0.12.1
28
-------------------------------------------------
39

OpenGrok

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@
3030
# - JAVA_OPTS Java options (e.g. for JVM memory increase
3131
# or enabling server JDK)
3232
# JAVA_OPTS=-Xmx2048m is the default!
33-
# - OPENGROK_APP_SERVER Application Server ("Tomcat" or "Glassfish")
33+
# - OPENGROK_APP_SERVER Application Server ("Tomcat", "Glassfish" or "Resin")
3434
# - OPENGROK_WAR_TARGET_TOMCAT Tomcat Specific WAR Target Directory
3535
# - OPENGROK_WAR_TARGET_GLASSFISH Glassfish Specific WAR Target Directory
36+
# - OPENGROK_WAR_TARGET_RESIN Resin Specific WAR Target Directory
3637
# - OPENGROK_WAR_TARGET Fallback WAR Target Directory
3738
# - OPENGROK_TOMCAT_BASE Base Directory for Tomcat (contains webapps)
3839
# - OPENGROK_GLASSFISH_BASE Base Directory for Glassfish
3940
# (contains domains)
4041
# - OPENGROK_GLASSFISH_DOMAIN Preferred Glassfish Domain Name
42+
# - OPENGROK_RESIN_BASE Base Directory for Resin (contains webapps)
4143
# - OPENGROK_VERBOSE Enable Verbose Mode in opengrok.jar (*)
4244
# - OPENGROK_PROGRESS Shows progress in %(percentage) of working
4345
# through project, it's good to have Verbose
@@ -52,6 +54,9 @@
5254
# directory
5355
# local - for local repos only
5456
# uionly - enabled for UI only
57+
# - OPENGROK_ENABLE_PROJECTS Enable projects (set it to true or false)
58+
# Every directory in SRC_ROOT is
59+
# considered a separate project
5560
# - OPENGROK_SCAN_REPOS Disable Scan for repositories (*)
5661
# - OPENGROK_SCAN_DEPTH how deep should scanning for repos go
5762
# (by default 3 directories from SRC_ROOT)
@@ -89,7 +94,7 @@
8994
#
9095

9196
#
92-
# Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
97+
# Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
9398
#
9499
#
95100
# Print usage to stdout and exit.
@@ -252,7 +257,12 @@ DefaultInstanceConfiguration()
252257

253258
# OPTIONAL: Enable Projects
254259
# (Every directory in SRC_ROOT is considered a separate project)
255-
ENABLE_PROJECTS="-P"
260+
OPENGROK_ENABLE_PROJECTS="${OPENGROK_ENABLE_PROJECTS:-true}"
261+
case $OPENGROK_ENABLE_PROJECTS in
262+
true) ENABLE_PROJECTS="-P" ;;
263+
false) ENABLE_PROJECTS="" ;;
264+
*) ENABLE_PROJECTS="-P" ;;
265+
esac
256266

257267
# OPTIONAL: Scanning Options (for Mercurial repositories)
258268
SCAN_FOR_REPOSITORY="-S"
@@ -268,6 +278,11 @@ DefaultInstanceConfiguration()
268278
GENERATE_HISTORY="-r ${OPENGROK_GENERATE_HISTORY}"
269279
fi
270280

281+
if [ "$OPENGROK_GENERATE_HISTORY" != "off" ]
282+
then
283+
GENERATE_HISTORY="${GENERATE_HISTORY} -H"
284+
fi
285+
271286
# OPTIONAL: override depth of scanning for repositories
272287
if [ -n "${OPENGROK_SCAN_DEPTH}" ]
273288
then
@@ -548,9 +563,7 @@ FindApplicationServerType()
548563
# Maybe a better implementation would be to call Application
549564
# Server specific WAR Directory and see if they exist.
550565

551-
if [ -d "/var/tomcat6/webapps" \
552-
-o -d "/var/lib/tomcat6/webapps" \
553-
-o -d "/var/lib/tomcat7/webapps" \
566+
if [ -d "/var/tomcat8/webapps" \
554567
-o -d "/var/lib/tomcat8/webapps" \
555568
]
556569
then
@@ -564,6 +577,12 @@ FindApplicationServerType()
564577
return
565578
fi
566579

580+
if [ -d "/etc/resin" -o -d "/usr/local/share/resin" ]
581+
then
582+
echo "Resin"
583+
return
584+
fi
585+
567586
# Assume Tomcat
568587
echo "Tomcat"
569588
}
@@ -582,10 +601,8 @@ DetermineWarDirectoryTomcat()
582601

583602
for prefix in \
584603
${OPENGROK_TOMCAT_BASE} \
585-
/var/tomcat6 \
586-
/var/lib/tomcat6 \
587-
/var/lib/tomcat7 \
588-
/var/lib/tomcat8
604+
/var/lib/tomcat8 \
605+
/var/tomcat8
589606
do
590607
if [ -d "${prefix}/webapps" ]
591608
then
@@ -653,6 +670,31 @@ DetermineWarDirectoryGlassfish()
653670
echo "${domainDirectory}/${firstDomain}/autodeploy"
654671
}
655672

673+
DetermineWarDirectoryResin()
674+
{
675+
if [ -n "${OPENGROK_WAR_TARGET_RESIN}" ]
676+
then
677+
echo "${OPENGROK_WAR_TARGET_RESIN}"
678+
return
679+
elif [ -n "${OPENGROK_WAR_TARGET}" ]
680+
then
681+
echo "${OPENGROK_WAR_TARGET}"
682+
return
683+
fi
684+
685+
for prefix in \
686+
${OPENGROK_RESIN_BASE} \
687+
/var/resin \
688+
/opt/resin
689+
do
690+
if [ -d "${prefix}/webapps" ]
691+
then
692+
echo "${prefix}/webapps"
693+
return
694+
fi
695+
done
696+
}
697+
656698
#
657699
# Implementation
658700
#
@@ -719,11 +761,11 @@ ValidateConfiguration()
719761
then
720762
if [ "`uname -s`" = "SunOS" -a -d /opt/SUNWjavadb -a -d /usr/opengrok ];
721763
then
722-
if [ -d "/var/tomcat6" -a \
723-
! -r "/var/tomcat6/webapps/source/WEB-INF/lib/derbyclient.jar" ];
764+
if [ -d "/var/tomcat8" -a \
765+
! -r "/var/tomcat8/webapps/source/WEB-INF/lib/derbyclient.jar" ];
724766
then
725767
FatalError "JavaDB on but no derbyclient.jar under" \
726-
"/var/tomcat6/webapps/source/WEB-INF/lib"
768+
"/var/tomcat8/webapps/source/WEB-INF/lib"
727769
fi
728770
if [ ! -r "/usr/opengrok/lib/derbyclient.jar" ]; then
729771
FatalError "JavaDB on but no derbyclient.jar under" \
@@ -839,7 +881,7 @@ StdInvocation()
839881

840882
UpdateGeneratedData()
841883
{
842-
StdInvocation -H
884+
StdInvocation
843885
}
844886

845887
UpdateDataPartial()
@@ -880,6 +922,7 @@ DeployWar()
880922

881923
Tomcat) warTarget="`DetermineWarDirectoryTomcat`" ;;
882924
Glassfish) warTarget="`DetermineWarDirectoryGlassfish`" ;;
925+
Resin) warTarget="`DetermineWarDirectoryResin`" ;;
883926

884927
*) FatalError "Unsupported Application Server ${applicationServer}" ;;
885928

0 commit comments

Comments
 (0)