Projects
Mega:23.09
netty
_service:tar_scm:codegen.bash
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:codegen.bash of Package netty
#!/bin/bash for type in byte char short int long; do case $type in int) object=Integer ;; char) object=Character ;; *) object=${type^} ;; esac hash='(int) key' if [ $type = long ]; then hash='(int) (key ^ (key >>> 32))' fi mkdir -p target/generated-sources/collections/java for file in `find src/main/templates -name '*.template'`; do filename=$(basename $file | sed "s/K/${type^}/;s/\.template/.java/") sed -e "s/@k@/${type}/g" \ -e "s/@K@/${type^}/g" \ -e "s/@O@/${object}/g" \ -e "s/@KEY_NUMBER_METHOD@/${type}Value/g" \ -e "s/@HASH_CODE@/${hash}/g" \ $file > target/generated-sources/collections/java/$filename done done
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2