Hi,

Confronted with the same issue (fed up of editing directly in deployed 
directory and syncing back to srcs),
I tried lsyncd but found it not flexible enough,
so I took the time to find another solution: 
https://gist.github.com/prigaux/62ee4114d53da79ad1d1

- it uses fdupes (available on most linuxes) to find same files
- it symlinks the deployed files to the source files
- it requires <Context allowLinking="true"> in tomcat/conf/context.xml
- typical usage:
  compareDirsAndSymlinkSameFiles -v src/main /xxx/webapps/zzzz

- example to see what it does on uportal:
  compareDirsAndSymlinkSameFiles --dry-run uportal-war/src/main 
/xxx/webapps/uPortal

CONS: do not use it in production, since deployed files are directly taken from 
sources!
PROS: no need to maintain a list of files, works out of the box with any project

cu

On 28/07/2015 00:32, [email protected] wrote:
Hello all,

I was talking to James Wennmacher this morning about the possibility of 
including a
gulpfile with uPortal for accelerated development. I've been using one
personally (just in the parent folder) and it seems a bit selfish to
keep that goodness to myself, plus I'm sure somebody out there could
enhance/improve as we love to do. James thought it would be a good idea
for me to run by uportal-dev and see if there's any interest.

Essentially, what I have mirrors what the `ant deploy` task would do,
but only for non-compiled assets (js, json, jsp, xsl, images, etc.). It
typically sees a file change and gets it copies over on the order of
milliseconds which is a great deal better than the tens of seconds or minutes
I've seen with ant.

I tried to make it pretty generic inasmuch as it uses $TOMCAT_HOME
instead of an absolute path, which from what I can tell seems to be the
most important thing for the copying of those assets.

Anyway, let me know what you think!

Andrew Stuart



--
Pascal Rigaux

Expert en développement et déploiement d'applications
DSIUN-SAS (service applications et services numériques)
Université Paris 1 Panthéon-Sorbonne  -  Centre Pierre Mendès France (PMF)
B 407 - 90, rue de Tolbiac -  75634 PARIS CEDEX 13 - FRANCE
Tél : 01 44 07 86 59

--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.


--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to