Hello,
I had problem specially at initial phase of project when I'm moving entities
between packages, renaming them, adding service methods. Generated
parts in src/main are kept after regeneration even if I don't touch them.
I would like to have them regenerated next time. For this
reason I'm using following replacement for mvn command. This shell
script remember changed files. You have to use it from very begining
of project or at middle of project just do in project root (not workspace root):
touch -t 200701010101 `find src -type f`
and manualy touch every file you changed plus all required files (*.design,
*.oaw, *.xpt, *.properties, placeholder.txt). After this you should continue
with attached script.
Enjoy
Pavel
--------------------------------SCRIPT--------------------------------
#!/bin/bash
# Remember changed files
if [ -d 'src']; then
zip -rp ../keep$$.zip `find src/ -type f -mtime -1`
rm -rf `find src/ -type f -mtime +1`
fi
# Start maven
/usr/bin/mvn $*
# Set old date for all files except changed
if [ -d 'src']; then
touch -t 200701010101 `find src -type f`
unzip -o ../keep$$.zip
# Only for brave
#rm -rf ../keep$$.zip
# Remove empty dirs
rmdir `find src -type d -empty` 2> /dev/null
fi
--------------------------------SCRIPT--------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer