I need to build a liferay portlet/project and then run the server from CLI, I use a headless eclipse run as detailed in here to clean and build my projects, but these files aren't being copied to the server's webapps's directory, they only change in the workspace, meaning my changes won't show when I run the server.
The project is fairly complicated for me, and has lots of varied files that aren't exclusively class files, so I'm not sure simply copying the .class files will do all the time, especially if there's some cached/outdated files that need removal.
In Eclipse's GUI, in the "servers" tab, clean/publish does the trick with ease, is there a way to emulate that via some assortment of commands, or via running headless Eclipse with some special parameters?