File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ RUN curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-
1919 unzip maven.zip -d $SRC/maven && \
2020 rm maven.zip
2121ENV MVN $SRC/maven/apache-maven-3.6.3/bin/mvn
22+ RUN apt-get update && apt-get install -y openjdk-21-jdk rsync
23+ ENV JAVA_HOME /usr/lib/jvm/java-21-openjdk-amd64
24+ ENV PATH "$JAVA_HOME/bin:$PATH"
2225RUN git clone --depth 1 https://github.com/checkstyle/checkstyle checkstyle
2326COPY *.sh *Fuzzer.java $SRC/
2427WORKDIR $SRC/checkstyle
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616# #########################################################################
17+ export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
18+ export PATH=" $JAVA_HOME /bin:$PATH "
1719export TARGET_PACKAGE_PREFIX=" com.puppycrawl.tools.checkstyle."
1820
19- MAVEN_ARGS=" -Dmaven.test.skip=true -Djavac.src.version=15 -Djavac.target.version=15 --update-snapshots"
21+ MAVEN_ARGS=" -Dmaven.test.skip=true -Djavac.src.version=21 -Djavac.target.version=21 --update-snapshots"
2022$MVN clean package $MAVEN_ARGS
2123
2224BUILD_CLASSPATH=
2325RUNTIME_CLASSPATH=
2426
25- for JARFILE in $( find ./ -name * .jar)
27+ for JARFILE in $( find ./ -name " *.jar" )
2628do
2729 cp $JARFILE $OUT /
2830 BUILD_CLASSPATH=$BUILD_CLASSPATH$OUT /$( basename $JARFILE ) :
2931 RUNTIME_CLASSPATH=$RUNTIME_CLASSPATH \$ this_dir/$( basename $JARFILE ) :
3032done
3133
34+ mkdir -p $OUT /jdk-21
35+ rsync -aL --exclude=* .zip " $JAVA_HOME /" " $OUT /jdk-21/"
36+
3237# Build corpus with valid java files
3338mkdir $SRC /tmp-corpus
3439find $SRC -name " *.java" -exec cp {} $SRC /tmp-corpus/ \;
6166 mem_settings='-Xmx2048m:-Xss1024k'
6267 fi
6368
64- LD_LIBRARY_PATH=\" $JVM_LD_LIBRARY_PATH \" :\$ this_dir \
69+ export JAVA_HOME=\$ this_dir/jdk-21
70+ export PATH=\$ JAVA_HOME/bin:\$ PATH
71+ LD_LIBRARY_PATH=\"\$ JAVA_HOME/lib/server\" :\$ this_dir \
6572 \$ this_dir/jazzer_driver --agent_path=\$ this_dir/jazzer_agent_deploy.jar \
6673 --cp=$RUNTIME_CLASSPATH \
6774 --target_class=$fuzzer_basename \
You can’t perform that action at this time.
0 commit comments