that's exactly what i want to do. i'm just writing my own plugin which does following: -) fetch new artifact jar -) fetch old artifact jar
use java.util.zip.Zipfile to get all entries and compare their crc's. if the file changed or was not present in old artifact, add the file; if entry is not present in new artifact, but in the old one mark it as deleted. deleted files are a bit tricky because it should be possible to upgrade from v1.0 to v1.3; so i have to know all files which have been deleted between those versions. because of that i can't only compare two versions of a artifact but all versions between. but it seems to work for me. Baptiste MATHUS wrote: > > Do you mean: given two zip archives, version n and n+1, you'd like to be > able to generate something like a version nton+1 zip that'd only contain > the > different components that'd different between n and n+1 versions? > > If so, then I don't know if this is possible. Maybe with a special > dev/profile with the assembly plugin? > > If not, please rephrase your need. > > Cheers. > > 2009/5/25 gerhard presser <gpres...@groiss.com> > >> >> Hi all! >> We (a software-house developing a b2b java web application) are currently >> planing to move from ant to maven. >> I successfully migrated your ant build.xml to a maven pom stucture >> including multiple modules etc. >> >> We are using the assembly-plugin to package all dependencies and required >> folders. >> >> Because we provide new releases very often (once to twice a week) our >> customers have to update their installations by copy-pasting the changed >> files (mainly the module-jars but sometimes dependencies or other >> resource >> files not included in any jar change too) to their installation >> directory. >> >> Our plan is to provide a archive containing all files which changed from >> a >> certain time on as a patch, we can automatically install. >> >> My question is: is there any maven plugin which is able to generate a >> "diff" on my jar-files? >> >> thanks in advance >> bye >> -- >> View this message in context: >> http://www.nabble.com/automatic-patch-generation-tp23711270p23711270.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > > -- > Baptiste <Batmat> MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! > > -- View this message in context: http://www.nabble.com/automatic-patch-generation-tp23711270p23724415.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org