Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-1224

Setting the Jetty HTTP port via system property and Gradle property

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Resolution: Unresolved
  • Affects Version/s: 0.9
  • Fix Version/s: None

Description

Hi,

it would be great to be able to set the Jetty httpPort property via a system property and/or Gradle property. Right now you have to make a change to your Gradle build script (like adding a configuration task) to make this work. The plugin could predefine a property name (e.g. jettyHttpPort) that replaces the default port value.

Examples:

  • System property: gradle jettyRun -DjettyHttpPort=9090
  • Gradle property (gradle.properties): jettyHttpPort=9090

Issue Links

dependent on

Improvement - An improvement or enhancement to an existing feature or task. GRADLE-1365 Allow override of plugin convention property with project property

  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Benjamin Muschko added a comment - 11/Dec/10 11:39 AM

I sent a pull request for this on GitHub.

Show
Benjamin Muschko added a comment - 11/Dec/10 11:39 AM I sent a pull request for this on GitHub.
Hide
Permalink
Peter Niederwieser added a comment - 02/Feb/11 8:56 PM - edited

I understand the need for this feature. But I wonder if instead of manually checking system properties, we could improve the way convention objects work so that "gradle jettyRun -PhttpPort=7070" works out of the box.

Show
Peter Niederwieser added a comment - 02/Feb/11 8:56 PM - edited I understand the need for this feature. But I wonder if instead of manually checking system properties, we could improve the way convention objects work so that "gradle jettyRun -PhttpPort=7070" works out of the box.
Hide
Permalink
Benjamin Muschko added a comment - 03/Feb/11 6:05 AM

I would be OK with enriching convention objects also. Actually, that's better. Do you want me to open another ticket for that?

Show
Benjamin Muschko added a comment - 03/Feb/11 6:05 AM I would be OK with enriching convention objects also. Actually, that's better. Do you want me to open another ticket for that?
Hide
Permalink
Peter Niederwieser added a comment - 03/Feb/11 4:26 PM

Someone already created GRADLE-1365.

Show
Peter Niederwieser added a comment - 03/Feb/11 4:26 PM Someone already created GRADLE-1365.
Hide
Permalink
Benjamin Muschko added a comment - 04/Feb/11 7:03 AM

Great, thanks. If you want you can mark this ticket as a duplicate.

Show
Benjamin Muschko added a comment - 04/Feb/11 7:03 AM Great, thanks. If you want you can mark this ticket as a duplicate.
Hide
Permalink
Peter Niederwieser added a comment - 04/Feb/11 11:37 AM

I've already marked it as dependent.

Show
Peter Niederwieser added a comment - 04/Feb/11 11:37 AM I've already marked it as dependent.

People

  • Assignee:
    Unassigned
    Reporter:
    Benjamin Muschko
Vote (1)
Watch (1)

Dates

  • Created:
    17/Nov/10 12:26 PM
    Updated:
    13/Apr/12 6:42 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.