Attempting to make a java moss carpet

Anyone have any good advice for growing java moss, or will it just do its thing given enough light? Also I will be doing regular pruning, so the carpet shouldn't ever get taller than about 1/2 inch.