Skip to content

[build] remove usage of ant - #3696

Merged
jonpryor merged 1 commit into
dotnet:masterfrom
jonathanpeppers:remove-ant
Sep 26, 2019
Merged

[build] remove usage of ant#3696
jonpryor merged 1 commit into
dotnet:masterfrom
jonathanpeppers:remove-ant

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Context: http://build.azdo.io/3085600

We have been hitting a build error of:

==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
stderr | curl: (22) The requested URL returned error: 404 Not Found
stderr | Error: An exception occurred within a child process:
stderr |   DownloadError: Failed to download resource "ant--bcel"
stderr | Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
Error: Installation of ant failed

Which is just coming from brew install ant.

Looking into it, we only have usage of <Ant/> to build proguard.
It looks like there are instructions to build it with maven, ant,
gradle, javac, etc.

I reworked proguard to be built with gradle the same way we are
building r8.jar. This allows us to not need ant anymore.

@grendello grendello left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's also a Linux dependency in build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/Linux.DebianCommon.cs - can you remove it as well, please?

@jonathanpeppers

Copy link
Copy Markdown
Member Author

👀 I keep finding more and more things that say ant in here... I'll try to get them all.

@jonpryor

Copy link
Copy Markdown
Contributor

More context: Homebrew/homebrew-core#44608

Context: http://build.azdo.io/3085600

We have been hitting a build error of:

    ==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
    stderr | curl: (22) The requested URL returned error: 404 Not Found
    stderr | Error: An exception occurred within a child process:
    stderr |   DownloadError: Failed to download resource "ant--bcel"
    stderr | Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
    Error: Installation of ant failed

Which is just coming from `brew install ant`.

Looking into it, we only have usage of `<Ant/>` to build `proguard`.
It looks like there are instructions to build it with `maven`, `ant`,
`gradle`, `javac`, etc.

I reworked proguard to be built with `gradle` the same way we are
building `r8.jar`. This allows us to not need `ant` anymore.
@jonpryor
jonpryor merged commit 7200d66 into dotnet:master Sep 26, 2019
jonpryor pushed a commit that referenced this pull request Sep 26, 2019
Context: http://build.azdo.io/3085600
Context: Homebrew/homebrew-core#44608

On 2019-Sep-26, or thereabouts, we started seeing this build error:

	==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
	stderr | curl: (22) The requested URL returned error: 404 Not Found
	stderr | Error: An exception occurred within a child process:
	stderr |   DownloadError: Failed to download resource "ant--bcel"
	stderr | Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
	Error: Installation of ant failed

This is coming from `brew install ant`.  Apparently, something
related to the [Homebrew `ant` Formulae][0] has broken recently, and
all attempts to use Homebrew to install `ant` are failing, worldwide.

Looking into it, we only use `ant` and a related `<Ant/>` task to
build `src/proguard`, and ProGuard has instructions to instead build
with `maven`, `gradle`, and `javac` (among others).  Meaning we don't
actually *need* `ant` *at all*.

I reworked `src/proguard` to be built with `gradle`, the same way we
are building `r8.jar`.  This allows us to not need `ant` anymore, and
thus avoid the `brew install ant` error.

[0]: https://formulae.brew.sh/formula/ant
@jonathanpeppers
jonathanpeppers deleted the remove-ant branch September 26, 2019 18:33
jonpryor pushed a commit that referenced this pull request Sep 28, 2019
Context: http://build.azdo.io/3085600
Context: Homebrew/homebrew-core#44608

On 2019-Sep-26, or thereabouts, we started seeing this build error:

	==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
	stderr | curl: (22) The requested URL returned error: 404 Not Found
	stderr | Error: An exception occurred within a child process:
	stderr |   DownloadError: Failed to download resource "ant--bcel"
	stderr | Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
	Error: Installation of ant failed

This is coming from `brew install ant`.  Apparently, something
related to the [Homebrew `ant` Formulae][0] has broken recently, and
all attempts to use Homebrew to install `ant` are failing, worldwide.

Looking into it, we only use `ant` and a related `<Ant/>` task to
build `src/proguard`, and ProGuard has instructions to instead build
with `maven`, `gradle`, and `javac` (among others).  Meaning we don't
actually *need* `ant` *at all*.

I reworked `src/proguard` to be built with `gradle`, the same way we
are building `r8.jar`.  This allows us to not need `ant` anymore, and
thus avoid the `brew install ant` error.

[0]: https://formulae.brew.sh/formula/ant
jonpryor pushed a commit that referenced this pull request Oct 1, 2019
Context: http://build.azdo.io/3085600
Context: Homebrew/homebrew-core#44608

On 2019-Sep-26, or thereabouts, we started seeing this build error:

	==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
	stderr | curl: (22) The requested URL returned error: 404 Not Found
	stderr | Error: An exception occurred within a child process:
	stderr |   DownloadError: Failed to download resource "ant--bcel"
	stderr | Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
	Error: Installation of ant failed

This is coming from `brew install ant`.  Apparently, something
related to the [Homebrew `ant` Formulae][0] has broken recently, and
all attempts to use Homebrew to install `ant` are failing, worldwide.

Looking into it, we only use `ant` and a related `<Ant/>` task to
build `src/proguard`, and ProGuard has instructions to instead build
with `maven`, `gradle`, and `javac` (among others).  Meaning we don't
actually *need* `ant` *at all*.

I reworked `src/proguard` to be built with `gradle`, the same way we
are building `r8.jar`.  This allows us to not need `ant` anymore, and
thus avoid the `brew install ant` error.

[0]: https://formulae.brew.sh/formula/ant
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants