
Bearsampp Module - Apache
This is a module of Bearsampp project involving Apache HTTP Server.
Build System
This module uses Gradle as its build system. The Gradle build provides:
- โ
Pure Gradle build (no Ant dependencies)
- โ
Automatic Apache binary download and extraction
- โ
Remote version discovery from modules-untouched repository
- โ
Interactive and non-interactive build modes
- โ
Support for archived versions
- โ
Configurable build paths
- โ
Hash file generation (MD5, SHA1, SHA256, SHA512)
- โ
7-Zip and ZIP archive formats
Quick Start
Prerequisites
- Java 8 or higher
- Gradle (or use the included wrapper)
- 7-Zip (for .7z format archives)
Build Commands
# Display build information
gradle info
# List available versions
gradle listVersions
# Build a specific version
gradle release -PbundleVersion=2.4.62
# Build all versions
gradle releaseAll
# Verify build environment
gradle verify
# Clean build artifacts
gradle clean
Documentation
For detailed build instructions and documentation, see .gradle-docs/README.md
Additional documentation:
Configuration
build.properties
Configure the module build settings:
bundle.name = apache
bundle.release = 2025.8.15
bundle.type = bins
bundle.format = 7z
| Property |
Description |
Example Value |
bundle.name |
Name of the bundle |
apache |
bundle.release |
Release version |
2025.8.15 |
bundle.type |
Type of bundle |
bins |
bundle.format |
Archive format (7z or zip) |
7z |
Build Path Configuration
You can configure the build output path in three ways (priority order):
In build.properties:
build.path = C:/Bearsampp-build
Environment variable:
set BEARSAMPP_BUILD_PATH=C:/Bearsampp-build
Default: Uses ../bearsampp-build relative to project root
Version Management
Available Versions
Versions are detected from:
bin/ - Current/active versions
bin/archived/ - Archived/older versions
modules-untouched - Remote repository (automatic discovery)
Version Resolution Strategy
When building, the system checks for Apache binaries in this order:
- Local
bin/ directory - Check for version folder
- Local
bin/archived/ directory - Check archived versions
- Remote
apache.properties - Fetch from modules-untouched repository
- Direct repository download - Download from modules-untouched GitHub
This multi-tier fallback strategy ensures maximum flexibility and automatic version discovery without manual configuration.
Example:
# List local versions
gradle listVersions
# List remote versions
gradle listReleases
# Check integration
gradle checkModulesUntouched
Output Structure
Build artifacts are created in the bearsampp-build directory:
bearsampp-build/
โโโ bins/apache/{release}/ # Final packaged archives
โ โโโ bearsampp-apache-{version}-{release}.7z
โ โโโ bearsampp-apache-{version}-{release}.7z.md5
โ โโโ bearsampp-apache-{version}-{release}.7z.sha1
โ โโโ bearsampp-apache-{version}-{release}.7z.sha256
โ โโโ bearsampp-apache-{version}-{release}.7z.sha512
โโโ tmp/ # Temporary build files
โโโ bundles_prep/bins/apache/ # Prepared bundles
โโโ bundles_build/bins/apache/ # Build staging
โโโ bundles_src/ # Source bundles
โโโ downloads/apache/ # Downloaded dependencies
โโโ extract/apache/ # Extracted archives
Archive Structure:
Each archive contains the Apache version folder at the root:
bearsampp-apache-2.4.62-2025.8.15.7z
โโโ apache2.4.62/ โ Version folder at root
โโโ bin/
โโโ conf/
โโโ modules/
โโโ ...
Features
Interactive Mode
Run gradle release without parameters for interactive version selection:
gradle release
The system will display all available versions with location tags [bin] or [bin/archived] and prompt you to select one.
Batch Building
Build all available versions at once:
gradle releaseAll
This will iterate through all versions in bin/ and bin/archived/ directories and build each one.
Remote Version Discovery
The build system automatically discovers new Apache versions from the modules-untouched repository:
- Fetches version information from
apache.properties
- Downloads binaries automatically when not found locally
- No manual configuration required for new versions
- Fallback to direct repository access if needed
Check integration:
gradle checkModulesUntouched
Downloads
Official module downloads are available at:
https://bearsampp.com/module/apache
Issues
Issues must be reported on Bearsampp repository.
Contributing
Contributions are welcome! Please see the Bearsampp contribution guidelines.
Statistics

License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.