Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36A3C200BA0 for ; Fri, 14 Oct 2016 15:28:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35735160AD9; Fri, 14 Oct 2016 13:28:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7B67B160AD0 for ; Fri, 14 Oct 2016 15:28:56 +0200 (CEST) Received: (qmail 33373 invoked by uid 500); 14 Oct 2016 13:28:55 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 33364 invoked by uid 99); 14 Oct 2016 13:28:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 13:28:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EEB891800B9 for ; Fri, 14 Oct 2016 13:28:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XIYesva_W_WD for ; Fri, 14 Oct 2016 13:28:53 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C5BDC5F65A for ; Fri, 14 Oct 2016 13:28:52 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2A6CAE00A5 for ; Fri, 14 Oct 2016 13:28:52 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 0CE2A3A0248 for ; Fri, 14 Oct 2016 13:28:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1764891 - /sling/trunk/launchpad/builder/set-sling-snapshots.sh Date: Fri, 14 Oct 2016 13:28:51 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161014132852.0CE2A3A0248@svn01-us-west.apache.org> archived-at: Fri, 14 Oct 2016 13:28:57 -0000 Author: bdelacretaz Date: Fri Oct 14 13:28:51 2016 New Revision: 1764891 URL: http://svn.apache.org/viewvc?rev=1764891&view=rev Log: Experimental script to generate an all-snapshots launchpad, for integration tests Added: sling/trunk/launchpad/builder/set-sling-snapshots.sh (with props) Added: sling/trunk/launchpad/builder/set-sling-snapshots.sh URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/builder/set-sling-snapshots.sh?rev=1764891&view=auto ============================================================================== --- sling/trunk/launchpad/builder/set-sling-snapshots.sh (added) +++ sling/trunk/launchpad/builder/set-sling-snapshots.sh Fri Oct 14 13:28:51 2016 @@ -0,0 +1,41 @@ +#!/bin/bash +# +# EXPERIMENTAL script to remove versions from the +# provisioning model lines of Sling artifacts. +# +# Meant to create an alternate version of the Sling +# launchpad using all the latest snapshots, for +# integration testing in parallel with a stable +# versions that uses releases. +# +# This script modifies provisioning model files under +# src/main/provisioning, the changes are NOT +# meant to be committed, just meant to build and +# deploy an "all snapshots" launchpad jar meant to +# be used by the launchpad/testing module. +# +# To verify the results use +# mvn dependency:resolve | grep org.apache.sling +# +# For some reason currently two modules are not resolved +# to snapshots although their versions are correctly removed +# in the provisioning model: +# +# mvn dependency:resolve | grep org.apache.sling | grep -v SNAPSHOT +# [INFO] --- maven-dependency-plugin:2.10:resolve (default-cli) @ org.apache.sling.launchpad --- +# [INFO] org.apache.sling:org.apache.sling.resourceresolver:jar:1.4.18:provided +# [INFO] org.apache.sling:org.apache.sling.i18n:jar:2.5.4:provided +# + +function removeSlingVersions() { + sed 's/\(org.apache.sling\)\/\(org.apache.sling.*\)\/.*/org.apache.sling\/\2/g' < $1 +} + +SRC="src/main/provisioning/*.txt" +echo "Removing Sling versions from provisioning model files under $SRC..." +for i in $SRC +do + TMP=/tmp/$ME_$$ + removeSlingVersions $i > $TMP + mv $TMP $i +done \ No newline at end of file Propchange: sling/trunk/launchpad/builder/set-sling-snapshots.sh ------------------------------------------------------------------------------ svn:executable = *