Red_Hat_Enterprise_Linux-6-Developer_Guide-en-US.pdf

(2571 KB) Pobierz
Red Hat Enterprise Linux 6
Developer Guide
An introduction to application development
tools in Red Hat Enterprise Linux 6
Dave Brolley
William Cohen
Roland Grunberg
Aldy Hernandez
Karsten Hopp
Jakub Jelinek
817140601.015.png 817140601.016.png 817140601.017.png 817140601.018.png 817140601.001.png 817140601.002.png
Developer Guide
Jeff Johnston
Benjamin Kosnik
Aleksander Kurtakov
Chris Moller
Phil Muldoon
Andrew Overholt
Charley Wang
Kent Sebastian
817140601.003.png 817140601.004.png 817140601.005.png
Red Hat Enterprise Linux 6 Developer Guide
An introduction to application development tools in Red Hat
Enterprise Linux 6
Edition 1
Author
Dave Brolley
Author
William Cohen
Author
Roland Grunberg
Author
Aldy Hernandez
Author
Karsten Hopp
Author
Jakub Jelinek
Author
Jeff Johnston
Author
Benjamin Kosnik
Author
Aleksander Kurtakov
Author
Chris Moller
Author
Phil Muldoon
Author
Andrew Overholt
Author
Charley Wang
Author
Kent Sebastian
Editor
Don Domingo
Editor
Jacquelynn East
Copyright © 2010 Red Hat, Inc. and others.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available
at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this
document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity
Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
Java ® is a registered trademark of Oracle and/or its affiliates.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other
countries.
All other trademarks are the property of their respective owners.
1801 Varsity Drive
Raleigh, NC 27606-2072 USA
Phone: +1 919 754 3700
Phone: 888 733 4281
817140601.006.png 817140601.007.png 817140601.008.png
Developer Guide
Fax: +1 919 754 3701
This document describes the different features and utilities that make Red Hat Enterprise Linux 6
an ideal enterprise platform for application development. It focuses on Eclipse as an end-to-end
integrated development environment (IDE), but also includes command-line tools and other utilities
outside Eclipse.
817140601.009.png 817140601.010.png 817140601.011.png
1. Document Conventions ................................................................................................... ix
1.1. Typographic Conventions ..................................................................................... ix
1.2. Pull-quote Conventions ......................................................................................... x
1.3. Notes and Warnings ............................................................................................ xi
2. Getting Help and Giving Feedback ................................................................................. xii
2.1. Do You Need Help? ............................................................................................ xii
2.2. We Need Feedback! ........................................................................................... xii
1.1. Understanding Eclipse Projects ..................................................................................... 1
1.2. Help In Eclipse ............................................................................................................ 4
1.3. Development Toolkits ................................................................................................... 7
2.1. User Interface .............................................................................................................. 9
2.2. Useful Hints ............................................................................................................... 15
2.2.1. The quick access menu ................................................................................... 15
2.2.2. libhover Plug-in ................................................................................................ 21
3.1. Concurrent Versions System (CVS) ............................................................................. 25
3.1.1. CVS Overview ................................................................................................. 25
3.1.2. Typical scenario ............................................................................................... 26
3.1.3. CVS Documentation ........................................................................................ 27
3.2. Apache Subversion (SVN) .......................................................................................... 27
3.2.1. Installation ....................................................................................................... 27
3.2.2. SVN repository ................................................................................................ 27
3.2.3. Importing Data ................................................................................................. 28
3.2.4. Working Copies ............................................................................................... 29
3.2.5. Committing changes ........................................................................................ 30
3.2.6. SVN Documentation ........................................................................................ 32
3.3. Git ............................................................................................................................. 32
3.3.1. Installation ....................................................................................................... 34
3.3.2. Initial Setup ..................................................................................................... 34
3.3.3. Git repository ................................................................................................... 35
3.3.4. Untracked files ................................................................................................ 37
3.3.5. Unmodified files ............................................................................................... 38
3.3.6. Modified Status ................................................................................................ 39
3.3.7. Staged files ..................................................................................................... 39
3.3.8. Remote repositories ......................................................................................... 41
3.3.9. Commit logs .................................................................................................... 42
3.3.10. Fixing problems ............................................................................................. 43
3.3.11. Git documentation .......................................................................................... 44
4.1. Version Information ..................................................................................................... 47
4.2. Compatibility .............................................................................................................. 48
4.2.1. API Compatibility ............................................................................................. 48
4.2.2. ABI Compatibility ............................................................................................. 49
4.2.3. Policy .............................................................................................................. 50
4.2.4. Static Linking ................................................................................................... 51
4.2.5. Core Libraries .................................................................................................. 52
4.2.6. Non-Core Libraries .......................................................................................... 53
4.3. Library and Runtime Details ........................................................................................ 53
4.3.1. The GNU C Library ......................................................................................... 53
v
817140601.012.png 817140601.013.png 817140601.014.png
Zgłoś jeśli naruszono regulamin