Kinda adding to what Woody has said...
Sounds like the brake line broke at the nut. Not an unuasual experience. I never seem to get to own a vehicle which is new, so I always have had to deal with this stuff.
A torch and penetrating oil sometimes is a good way to start these jobs. Soak, heat, resoak, reheat, then use a line wrench. No line wrench, the the vice grips comes out.
Same with bleeders, except I use a socket on a 1/4" drive so the handle isn't real long and I twist off the bleeder.
When recovering from the problem the Poster has himself into, I buy a long pc of line with fittings, another male and a female union. Some folks use a compression fitting, but that isn't kosher. If you a real dolt at flairing lines though, it is an option.
Cut the existing line at a convenient spot with good line slide the male fitting over it and double flair it. It may take a couple of tries, so be patient. Now add the coupler, and fish the new line to where it needs to go. DO NOT use a wrench to make bends as it will kink the line. Bends should be gradual. They make a tool for this, but I generally just use my thumb. Couple the line to the old line and BAM, you have a line repair.
Rear line you can extend with a YJ line.
For short lifts you can (as the front) relocate the union of the hard line and hose. If you need a guide, IIRC Ed Stevens has a write up on how to extend your brake lines this way, and Rusty's sells a reloaction kit.
I have had my trucks up to 5.5" of lift and have never had to replace the hoses, just relocated them.