Opened 15 years ago

Closed 15 years ago

#24295 closed defect (fixed)

Failed to install gradle

Reported by: davidchang168@… Owned by: breskeby@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: gradle

Description (last modified by mf2k (Frank Schima))

Hi, I got the following error while install gradle port ...

Thanks, David

Davids-iMac:~ Admin$ sudo port -d install gradle
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gradle
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gradle
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: not using configure, so not adding the default universal variant
DEBUG: Requested variant i386 is not provided by port gradle.
DEBUG: Requested variant macosx is not provided by port gradle.
DEBUG: Executing variant darwin provides darwin
--->  Computing dependencies for gradle
DEBUG: Searching for dependency: unzip
DEBUG: Didn't find receipt, going to depspec regex for: unzip
DEBUG: Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$
DEBUG: Executing org.macports.main (gradle)
DEBUG: Skipping completed org.macports.fetch (gradle)
DEBUG: Skipping completed org.macports.checksum (gradle)
DEBUG: setting option extract.cmd to /usr/bin/unzip
DEBUG: setting option extract.pre_args to -q
DEBUG: setting option extract.post_args to {-d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gradle/work}
DEBUG: Skipping completed org.macports.extract (gradle)
DEBUG: Skipping completed org.macports.patch (gradle)
DEBUG: Skipping completed org.macports.configure (gradle)
--->  Building gradle
DEBUG: Executing org.macports.build (gradle)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' JAVA_HOME='/Library/Java/Home'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gradle/work/gradle-0.8" && ./gradlew clean explodedDistBase -Dskip.test'
Downloading http://snapshots.dist.codehaus.org/gradle/gradle-0.8-20090925104210+1000-bin.zip

Exception in thread "main" java.io.FileNotFoundException: http://snapshots.dist.codehaus.org/gradle/gradle-0.8-20090925104210+1000-bin.zip
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1185)
	at org.gradle.wrapper.Download.downloadInternal(Download.java:48)
	at org.gradle.wrapper.Download.download(Download.java:36)
	at org.gradle.wrapper.Install.createDist(Install.java:58)
	at org.gradle.wrapper.Wrapper.execute(Wrapper.java:45)
	at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:39)
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gradle/work/gradle-0.8" && ./gradlew clean explodedDistBase -Dskip.test " returned error 1
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gradle/work/gradle-0.8" && ./gradlew clean explodedDistBase -Dskip.test " returned error 1
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for gradle): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Davids-iMac:~ Admin$ env | grep PATH
PATH=/opt/local/bin:/opt/local/sbin:/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin:/Users/Admin/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql-5.1.45-osx10.6-x86_64/bin:/opt/local/bin

Change History (3)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to breskeby@…

comment:2 Changed 15 years ago by davidchang168@…

I did try to download "http://snapshots.dist.codehaus.org/gradle/gradle-0.8-20090925104210+1000-bin.zip" from browser but got "HTTP 404 Not Found" error.

comment:3 Changed 15 years ago by breskeby@…

Resolution: fixed
Status: newclosed

I've refactored the port to use binaries until the source distribution is fixed

Note: See TracTickets for help on using tickets.