Best way will be if files generated by oAW should have specific time. I asked about this in oAW but they aren't interested. Without this, clean task will be very dificult to implement.
With SVN is problem that I wouldn't like to commit with every generation because code is maybe unstable. I know I can do it with branching but than it start to be more complex than it have to be. Stupid setTime feature in oAW should resolve it. Pavel On Wed, Nov 26, 2008 at 12:51 PM, Patrik Nordwall <[EMAIL PROTECTED]> wrote: > > I agree, we will solve this: > http://www.fornax-platform.org/tracker/browse/CSC-208 > > In the mean time there is another tip in CSC-208 and also a clean-generated > target in the ant build files, created by the archetype. > > /Patrik > > > PaloT wrote: >> >> 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 >> >> > > -- > View this message in context: > http://www.nabble.com/Tip%3A-remove-unchanged-files-tp20698007s17564p20699428.html > Sent from the Fornax-Platform mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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
