On Jun 4, 2008, at 8:25 AM, Hans Dockter wrote:

Hi Jerod,

On Jun 3, 2008, at 11:03 PM, JerodLass wrote:


I tried:

ant.setproxy(proxyhost:"host", proxyport:"80")

along with some other configurations, and after a "the class
org.apache.ant.taskdefs.optional.net.SetProxy was not found" error, I got a
message about how Set Proxy there was no error, but a .jar from Ant's
optional components is missing. I looked into it a little and found some people saying setproxy uses ant-nodeps.jar and ant-optional.jar (after 1.5), but I have ant-nodeps.jar in my ant/lib folder. Is there somewhere else I
should put it or somewhere to map a new task?

-Jerod

Gradle ships with its own ant-jars (1.7.0). The Ant distributions installed on your machine are not used when running Gradle. The SetProxy task is contained in the ant-nodeps.jar which is unfortunately not shipped with Gradle.

To solve this problem with Gradle 0.1.4 you can do:

dependencies {
    addConfiguration('ant_nodeps')
    addMavenRepo()
    ant_nodeps "org.apache.ant:ant-nodeps:1.7.0"
}

ant {
taskdef(name: "setproxy", classname: "org.apache.tools.ant.taskdefs.optional.net.SetProxy",
            classpath: dependencies.antpath('ant_nodeps'))
    setproxy(proxyhost: "host", proxyport: "80")
}

With 0.1.5, which is released within the next week, you will just have to do:

ant.setproxy(proxyhost: "host", proxyport: "80")

Thanks

- Hans

We want to provide build-in proxy support in a future release. You can follow this via http://jira.codehaus.org/browse/GRADLE-99

- Hans





JerodLass wrote:

If I add a Maven2 repository resolver:

dependencies{
    addMavenRepo()
}

How can I configure my Maven proxy settings?  When I come up with a
settings.xml file, where do I need to put it in order for gradle to grab
and use it?  Thanks in advance for any help...

-Jerod


--
View this message in context: http://www.nabble.com/maven- repository-tp17630249p17633643.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to