Hi Alex, all

The way I use it is that I have this in build.properties (just copy
build.properties.default in repo) and change the content.

build.properties file is in .gitignore and I think it is the most idiomatic
way to do this kind of stuff.

$ cat build.properties
ant.gen-doc.skip=true
ant.no-checkstyle=true

then "ant jar" takes 30 seconds.

You can have different property files and you can switch them by
"ant -propertyfile <file>". You can alias it in shell as well.

Regards

On Wed, Apr 23, 2025 at 10:06 PM Alex Petrov <al...@coffeenco.de> wrote:

> Hi folks,
>
> Building Cassandra jar has been getting increasingly slow, and now it
> looks like we depend not only on python3 (which was already not optimal),
> but also on go:
>
>     ant -Dno-checkstyle=true
>
> ...
>
>      [exec] python3 ./scripts/gen-nodetool-docs.py
>      [exec] python3 ./scripts/convert_yaml_to_adoc.py
> ../conf/cassandra.yaml
> ./modules/cassandra/pages/managing/configuration/cass_yaml_file.adoc
>      [exec] ./scripts/process-native-protocol-specs-in-docker.sh
>      [exec] Go env not found in your system, proceeding with installation.
>      [exec] Downloading Go 1.23.1...
>      [exec] Installing Go 1.23.1...
>      [exec] Building the cqlprotodoc...
>      [exec] Cloning into 'cassandra-website'...
>      [exec] Your branch is up to date with 'origin/trunk'.
>      [exec] go: downloading github.com/mvdan/xurls v1.1.0
>      [exec] Processing the .spec files...
>
> I personally consider this extremely dangerous, but also unnecessary. My
> current stance is that functionality introducing python3 and go should be
> moved to a separate task that only runs on demand / ci / release.  I
> welcome convincing arguments that would suggest otherwise.
>
> If you agree we should not require python and go to run `ant
> -Dno-checkstyle=true`, please also write a short message, this will be very
> helpful as well.
>
> Thank you,
> --Alex
>

Reply via email to