summaryrefslogtreecommitdiffstats
path: root/java/sca/distribution/features/generate-profile.sh
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-08-13 19:38:15 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-08-13 19:38:15 +0000
commitbd4fbd7058f1285c24481170d10e34c316cd8e7c (patch)
tree66bc6ea749e1e1b929f5ea70593242c78908aa83 /java/sca/distribution/features/generate-profile.sh
parent9265e51e379f80bd42fd34be90f779545c83a8f0 (diff)
Simplified the build scripts a bit, added source distro build scripts. Building the core distro now triggers the build of the modules that it includes.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@685652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/distribution/features/generate-profile.sh')
-rwxr-xr-xjava/sca/distribution/features/generate-profile.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/java/sca/distribution/features/generate-profile.sh b/java/sca/distribution/features/generate-profile.sh
new file mode 100755
index 0000000000..1d847a164e
--- /dev/null
+++ b/java/sca/distribution/features/generate-profile.sh
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# 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
+
+echo " <profile>"
+echo " <id>distribution</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 }'
+
+echo " </modules>"
+echo " </profile>"
+echo ""
+