China is building up military forces and setting up bases along sea lanes from the Middle East to project its power overseas and protect its oil shipments, according to a previously undisclosed internal report prepared for Defense Secretary Donald H. Rumsfeld.