I do not know there are any good solution. What I did was to create a project in subversion (or cvs) and check in everything in jboss-portal.sar folder. Then make changes there and test. When the test is done, you can copy everything there to temporary folder and search for all ".svn" and delere them.
Now you have only the files you need. YOu can copy everything in temporary directory to the server.