summaryrefslogtreecommitdiffstats
path: root/java/sca/distribution/features/etc/generate-pom.sh
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-08-25 15:55:15 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-08-25 15:55:15 +0000
commite2eb32676f17d9f7e1fa67902914124f956392cb (patch)
tree4a970c381236c8b491c84d5d4490ee7bf6494699 /java/sca/distribution/features/etc/generate-pom.sh
parent902d1cd1fe1dec937f578b7a4cc3c94fda2b52ff (diff)
Simplified the distribution builds, use Maven assembly component descriptors to share definitions. Added a few scripts to help maintain some of the descriptors, eventually they should be converted to Maven plugins.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@688767 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/distribution/features/etc/generate-pom.sh')
-rwxr-xr-xjava/sca/distribution/features/etc/generate-pom.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/java/sca/distribution/features/etc/generate-pom.sh b/java/sca/distribution/features/etc/generate-pom.sh
index cf53e890d9..b901f8cffc 100755
--- a/java/sca/distribution/features/etc/generate-pom.sh
+++ b/java/sca/distribution/features/etc/generate-pom.sh
@@ -15,26 +15,20 @@
# specific language governing permissions and limitations
# under the License.
-# After building a distribution, this script can be used to
-# generate a Maven build profile that includes all the modules
-# included directly or transitively in that distribution
+# This script can be used to generate a Maven build profile that includes all
+# the modules included directly or transitively in a distribution
+
+cat pom.xml | awk 'BEGIN { i=0 } /<profiles>/ { i=1; print } /.*/ { if (i==0) print } '
echo " <profile>"
echo " <id>modules</id>"
echo " <modules>"
-unzip -v target/*-SNAPSHOT.zip | awk '/(.*)(\/modules\/tuscany-)(.*)(\..ar$)/ { print gensub("(.*)(/modules/tuscany-)(.*)(-...-SNAPSHOT.jar)", "\\3", "g")}' | sort | awk '{ printf " <module>../../../modules/%s</module>\n", $1 }'
+mvn -o dependency:list | awk '/.INFO. (.*.tuscany.sca):(tuscany-)(.*):(.*):(.*):(.*)/ { print gensub("(.INFO. )(.*)(:)(tuscany-)(.*)(:)(.*)(:)(.*)(:)(.*)", "\\5", "g") }' | sort | awk '{ printf " <module>../../../modules/%s</module>\n", $1 }'
echo " </modules>"
echo " </profile>"
echo ""
-# This generates a list of includes that can be included in a
-# Maven assembly fileset, to include the source of the modules
-# in a source distribution for example
-
-echo " <includes>"
-unzip -v target/*-SNAPSHOT.zip | awk '/(.*)(\/modules\/tuscany-)(.*)(\..ar$)/ { print gensub("(.*)(/modules/tuscany-)(.*)(-...-SNAPSHOT.jar)", "\\3", "g")}' | sort | awk '{ printf " <include>%s/**/*</include>\n", $1 }'
-echo " </includes>"
-echo ""
+cat pom.xml | awk 'BEGIN { i=0 } /<\/profiles>/ { i=1 } /.*/ { if (i==1) print } '