tailieunhanh - Programming Groovy dynamic productivity for the java developer phần 2

Bây giờ bạn có một proxy điều hành tính trên máy chủ, nhưng có thể sử dụng trên máy khách, qua ranh giới quá trình, nếu bạn thích, qua ranh giới máy. Ví dụ 19-4 cho thấy toàn bộ khách hàng (để biên dịch nó, bạn phải bao gồm một tài liệu tham khảo để như bạn đã làm với | Test-Drive Using groovysh 32 The next step is to set the GROOVY_HOME environment variable and the path. Depending on the shell you use you have to edit different profile files. You probably know where to go refer to the appropriate documentation if you need help figuring out what to edit. I use bash so I edited the .bash_proflle file. In that file I added an entry export GROOVY_HOME opt groovy to set the environment variable GROOVY_HOME. Also add GROOVY_HOME bin to the path environment variable. Next confirm that the environment variable JAVA_HOME is pointing to the location of your JDK directory if it s not present set it . ls -l which java should help you determine the location of your Java installation. That s pretty much all you have to do. Remember to close any open terminal windows because changes to environment variables don t take effect until you reopen the In a new terminal window type the command groovy -v and make sure it reports version . That s all there is to it Test-Drive Using groovysh oK you ve installed Groovy and checked the version it s time to take it for a test-drive. The quickest way to play with Groovy is to use the command-line tool groovysh. open a terminal window and type groovysh you ll see a shell as shown in Figure on the next page. Go ahead and type some Groovy statements to see how it works. groovysh is a good tool for interactively trying out small Groovy code examples. It is also useful for experimenting with some code while you re in the middle of The groovysh command compiles and executes completed statements as soon as you hit the Enter Return key and it prints the result of that statement execution along with any output from the execution. If you type 16 for example it prints the result . However if you type println Test drive Groovy it prints the words in quotes followed by null indicating that println returned nothing. 3. If you like you can source your profile file .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.