java - Copy class + package-context between projects in Eclipse -
for number of uninteresting reasons: need copy many classes 1 project (while preserving package-structure of said classes).
in other words, given:
origin/src/com/foo/bar/a origin/src/com/baz/qux/b dest/ <empty>  we want copy , b such end with:
dest/src/com/foo/bar/a dest/src/com/baz/qux/b  presently, forced manually create packages in dest , ctrl+c/ctrl+v individual .java files between projects. have eclipse automatically copy files on while automatically creating packages (hence, preserving package structure).
you can copy files between project folders using shell script. eclipse pick copied java files including package structure.
if select files in source project in navigator window panel (not package explorer) should able ctrl+c/v whole file structure preserving packages new project.
Comments
Post a Comment