Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Proof of Concept #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Gradle Proof of Concept #9

wants to merge 5 commits into from

Conversation

danhyun
Copy link

@danhyun danhyun commented Oct 28, 2014

Adding ability to run code examples from command line via Gradle

$ ./gradlew echoServer
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:echoServer
Usage: EchoServer <port>

BUILD SUCCESSFUL

Total time: 0.905 secs
$ ./gradlew echoServer -Dargs='9090'
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:echoServer
com.manning.nettyinaction.chapter2.EchoServer started and listen on /0:0:0:0:0:0:0:0:9090
$ ./gradlew echoClient
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:echoClient
Usage: EchoClient <host> <port>

BUILD SUCCESSFUL

Total time: 4.959 secs
$ ./gradlew echoClient -Dargs='localhost 9090'
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:echoClient
Client received: 4e6574747920726f636b7321

BUILD SUCCESSFUL

Total time: 3.33 secs

yyuweb pushed a commit to sourcecode-in-book/netty-in-action that referenced this pull request Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant