Update of /cvsroot/squirrel-sql/mavenize
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9055
Modified Files:
mavenize.pl
Log Message:
Copying over the installer and other poms and projects.
Index: mavenize.pl
===================================================================
RCS file: /cvsroot/squirrel-sql/mavenize/mavenize.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mavenize.pl 15 Aug 2009 17:37:50 -0000 1.2
--- mavenize.pl 16 Aug 2009 22:03:13 -0000 1.3
***************
*** 24,27 ****
--- 24,30 ----
$pluginsDir = $topDir . "/plugins";
$lafPluginDir = $pluginsDir . "/laf";
+ $installerDir = $topDir . "/installer";
+ $docDir = $topDir . "/doc";
+ $websiteDir = $topDir . "/web-site";
# copy in the root pom - this pom builds all of SQuirreL
***************
*** 34,41 ****
--- 37,64 ----
# copy in plugins support projects
+ print "Copying in plugins support projects\n";
+ `rm -rf squirrelsql-swingsetthemes/squirrelsql-swingsetthemes`;
`cp -r squirrelsql-plugins-assembly-descriptor $pluginsDir`;
+ `rm -rf $pluginsDir/squirrelsql-plugins-parent-pom`;
`cp -r squirrelsql-plugins-parent-pom $pluginsDir`;
+ `rm -rf $pluginsDir/squirrelsql-swingsetthemes`;
+ `cp -r squirrelsql-swingsetthemes $pluginsDir`;
+
+ # copy in the installer projects
+ print "Copying in installer projects\n";
+ `rm -rf $installerDir`;
+ `mkdir -p $installerDir`;
+ `cp -r squirrelsql-java-version-checker $installerDir`;
+ `cp -r squirrelsql-launcher $installerDir`;
+ `cp -r squirrelsql-other-installer $installerDir`;
+ `cp installer-pom.xml $installerDir/pom.xml`;
+
+ # copy in the translations project
+ print "Copying in translations project\n";
+ `rm -rf $topDir/squirrelsql-translations`;
+ `cp -r squirrelsql-translations $topDir`;
# restructure fw module
+ print "Restructuring fw module\n";
$fwDir = $topDir . "/fw";
`cp fw-pom.xml $fwDir/pom.xml`;
***************
*** 60,63 ****
--- 83,87 ----
# restructure app module
+ print "Restructuring app module\n";
$appDir = $topDir . "/app";
`cp app-pom.xml $appDir/pom.xml`;
***************
*** 90,93 ****
--- 114,135 ----
chdir($mavenizeDir) or die "Couldn't change directory to $mavenizeDir: $!\n";
+ # Restructure the doc module
+ print "Restructuring doc module\n";
+ `cp $mavenizeDir/doc-pom.xml $docDir/pom.xml`;
+ `rm -rf $docDir/src`;
+ `mkdir -p $docDir/src/main/resources`;
+ `cp $docDir/*.txt $docDir/src/main/resources/`;
+ `cp $docDir/*.html $docDir/src/main/resources/`;
+ `cp $docDir/*.css $docDir/src/main/resources/`;
+ `cp -r $docDir/images $docDir/src/main/resources/`;
+ `cp -r $docDir/licences $docDir/src/main/resources/`;
+
+ # Restructure the web-site module
+ print "Restructuring web-site module\n";
+ `cp $mavenizeDir/website-pom.xml $websiteDir`;
+ `rm -rf $websiteDir/src/main`;
+ `mkdir -p $websiteDir/src/main/resources`;
+ `cp $websiteDir/faq.html $websiteDir/src/main/resources`;
+
$cache_deps = <<"EOF";
<dependencies>
***************
*** 233,236 ****
--- 275,280 ----
`cp $mavenizeDir/laf-plugin/laf-plugin-assembly.xml $lafPluginDir/src/main/resources/assemblies`;
+
+
# End of script; Begin Subroutines
***************
*** 353,368 ****
$packagemap->{$package} = "plugin";
! } elsif ($parts[0] =~ /build\/$/) {
#print "Found a build package: $package\n\tfor $File::Find::name\n";
! } elsif ($File::Find::name =~ /sql12\/test/) {
# ignore test files during this pass
! } elsif ($File::Find::name =~ /sql12\/squirrelsql-test-utils/) {
# ignore maven test utilities project
} else {
print "Unable to categorize package of file: $File::Find::name\n";
--- 397,416 ----
$packagemap->{$package} = "plugin";
! } elsif ($parts[0] =~ /build\/$/) {
#print "Found a build package: $package\n\tfor $File::Find::name\n";
! } elsif ($File::Find::name =~ /sql12\/test/) {
# ignore test files during this pass
! } elsif ($File::Find::name =~ /sql12\/squirrelsql-test-utils/) {
# ignore maven test utilities project
+ } elsif ($File::Find::name =~ /sql12\/installer/) {
+
+ # ignore installer project
+
} else {
print "Unable to categorize package of file: $File::Find::name\n";
|