Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
netty
codegen.bash
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 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
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor