Charging battery pack through DC jack

I'm using an arduino enclosure with the circuity and battery connected in the enclosure. I want to be able to charge the battery by plugging the charger through the DC jack on the board rather than installing another DC jack.