Skip to content

Build Java without ANT#23724

Merged
asmorkalov merged 14 commits intoopencv:4.xfrom
dkurt:java_without_ant
Jun 16, 2023
Merged

Build Java without ANT#23724
asmorkalov merged 14 commits intoopencv:4.xfrom
dkurt:java_without_ant

Conversation

@dkurt
Copy link
Copy Markdown
Member

@dkurt dkurt commented Jun 1, 2023

Pull Request Readiness Checklist

Enables a path of building Java bindings without ANT

  • Able to build OpenCV JAR and Docs without ANT
    --   Java:                          
    --     ant:                         NO
    --     JNI:                         /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
    --     Java wrappers:               YES
    --     Java tests:                  NO
    
  • Possible to build OpenCV JAR without ANT but tests still require ANT

Merge with: opencv/opencv_contrib#3502

Notes:

  • Use OPENCV_JAVA_IGNORE_ANT=1 to force "Java" flow for building Java bindings
  • Java tests still require Apache ANT
  • JAR doesn't include .java source code files.

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@dkurt dkurt marked this pull request as ready for review June 4, 2023 17:12
@dkurt dkurt force-pushed the java_without_ant branch from a55e59d to ac7b1de Compare June 4, 2023 18:54
@dkurt dkurt force-pushed the java_without_ant branch from ac7b1de to 3272de4 Compare June 4, 2023 19:03
@asmorkalov asmorkalov added this to the 4.8.0 milestone Jun 5, 2023
@asmorkalov asmorkalov requested a review from opencv-alalek June 6, 2023 07:01
Copy link
Copy Markdown
Contributor

@opencv-alalek opencv-alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Validated with "Java" JAR + "ANT" Java tests

@asmorkalov asmorkalov merged commit 433c364 into opencv:4.x Jun 16, 2023
@asmorkalov asmorkalov mentioned this pull request Jul 27, 2023
@dkurt dkurt deleted the java_without_ant branch July 31, 2023 10:13
thewoz pushed a commit to thewoz/opencv that referenced this pull request Jan 4, 2024
Build Java without ANT opencv#23724

### Pull Request Readiness Checklist

Enables a path of building Java bindings without ANT

* Able to build OpenCV JAR and Docs without ANT
  ```
  --   Java:
  --     ant:                         NO
  --     JNI:                         /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
  --     Java wrappers:               YES
  --     Java tests:                  NO
  ```
* Possible to build OpenCV JAR without ANT but tests still require ANT

**Merge with**: opencv/opencv_contrib#3502

Notes:
- Use `OPENCV_JAVA_IGNORE_ANT=1` to force "Java" flow for building Java bindings
- Java tests still require Apache ANT
- JAR doesn't include `.java` source code files.


See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
thewoz pushed a commit to thewoz/opencv that referenced this pull request May 29, 2024
Build Java without ANT opencv#23724

### Pull Request Readiness Checklist

Enables a path of building Java bindings without ANT

* Able to build OpenCV JAR and Docs without ANT
  ```
  --   Java:
  --     ant:                         NO
  --     JNI:                         /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
  --     Java wrappers:               YES
  --     Java tests:                  NO
  ```
* Possible to build OpenCV JAR without ANT but tests still require ANT

**Merge with**: opencv/opencv_contrib#3502

Notes:
- Use `OPENCV_JAVA_IGNORE_ANT=1` to force "Java" flow for building Java bindings
- Java tests still require Apache ANT
- JAR doesn't include `.java` source code files.


See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants