[Squirrel-sql-commits] mavenize mavenize.pl,1.4,1.5
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Rob M. <man...@us...> - 2009-08-30 20:20:42
|
Update of /cvsroot/squirrel-sql/mavenize In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24188 Modified Files: mavenize.pl Log Message: refactored to work with subversion file structure. Index: mavenize.pl =================================================================== RCS file: /cvsroot/squirrel-sql/mavenize/mavenize.pl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mavenize.pl 21 Aug 2009 04:57:57 -0000 1.4 --- mavenize.pl 30 Aug 2009 20:20:31 -0000 1.5 *************** *** 5,12 **** # It is anticipated that it will take some months to fully switch the build which currently produces multiple platform # installers, pushes updated artifacts to an update site, and uploads installers and source archives to SourceForge. ! # Rather than do the conversion by hand and risk inconsistencies in the many pom files, I decided that a script to ! # automate would be more desireable. When the converted projects can completely replicate the automated release and ! # distribution process that is currently done by Ant, this script will be run one final time against a new project ! # repository hosted in subversion, to make it easier to relocate files without losing their history. Then, since # the script will no longer be needed, it will be removed and no longer used. # --- 5,12 ---- # It is anticipated that it will take some months to fully switch the build which currently produces multiple platform [...1020 lines suppressed...] + + sub generatePluginModulesPomFile { + $modules = "\t<module>squirrelsql-plugins-parent-pom</module>\n"; + $modules .= "\t<module>squirrelsql-plugins-assembly-descriptor</module>\n"; + for $artifact ( sort @artifacts ) { + $modules .= "\t<module>$artifact</module>\n"; + } + + $pluginsDir =~ s/\s//g; + $modulespomfile = $pluginsDir . '/pom.xml'; + print "Creating modules pom file ( $modulespomfile ) with modules: \n$modules"; + + # Create the plugins module pom file + open( MODULEPOMFILE, "> $modulespomfile" ) + or die "Couldn't open file ($modulespomfile): $!\n"; + $plugin_module_pom_template = + Text::Template->new( TYPE => 'FILE', SOURCE => "$mavenizeDir/plugin-module-pom.xml" ); + print MODULEPOMFILE $plugin_module_pom_template->fill_in(); + close(MODULEPOMFILE); + } |