Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 81545 invoked from network); 10 Nov 2008 16:35:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2008 16:35:40 -0000 Received: (qmail 13702 invoked by uid 500); 10 Nov 2008 16:35:47 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 13687 invoked by uid 500); 10 Nov 2008 16:35:47 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 13676 invoked by uid 99); 10 Nov 2008 16:35:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 08:35:47 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 16:34:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8EA1A238896F; Mon, 10 Nov 2008 08:34:38 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r712688 - /ant/sandbox/javafront/taskexec.sh Date: Mon, 10 Nov 2008 16:34:38 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081110163438.8EA1A238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Mon Nov 10 08:34:38 2008 New Revision: 712688 URL: http://svn.apache.org/viewvc?rev=712688&view=rev Log: it takes some time to get used to Unix shell quoting rules Modified: ant/sandbox/javafront/taskexec.sh Modified: ant/sandbox/javafront/taskexec.sh URL: http://svn.apache.org/viewvc/ant/sandbox/javafront/taskexec.sh?rev=712688&r1=712687&r2=712688&view=diff ============================================================================== --- ant/sandbox/javafront/taskexec.sh (original) +++ ant/sandbox/javafront/taskexec.sh Mon Nov 10 08:34:38 2008 @@ -29,28 +29,28 @@ echo '=============================================================================================' -echo XML: ^ -echo CMD: echo message "Hello World" +echo XML: '' +echo CMD: echo message \"Hello World\" echo ----------------------------------------------------------------------------------------------- StartAnt echo message "Hello World" echo =============================================================================================== -echo XML: ^ -echo CMD: echo message "This is Ant version ${ant.version}" +echo XML: '' +echo CMD: echo message \'This is Ant version \\\${ant.version}\' echo '---------------------------------------------------------------------------------------------' -StartAnt echo message "This is Ant version ${ant.version}" +StartAnt echo message 'This is Ant version \${ant.version}' echo '===============================================================================================' -echo XML: ^ +echo XML: '' echo CMD: echoproperties prefix ant. echo '---------------------------------------------------------------------------------------------' StartAnt echoproperties prefix ant. echo '===============================================================================================' -echo XML: ^ +echo XML: '' echo CMD: copy file build.xml tofile build.xml.bak echo '---------------------------------------------------------------------------------------------' StartAnt copy file build.xml tofile build.xml.bak @@ -60,7 +60,7 @@ echo '===============================================================================================' -echo XML: ^ +echo XML: '' echo CMD: delete file build.xml.bak echo '---------------------------------------------------------------------------------------------' StartAnt delete file build.xml.bak @@ -70,10 +70,10 @@ echo '===============================================================================================' -echo XML: ^ -echo XML: ^ -echo ^ -echo ^ +echo XML: '' +echo XML: '' +echo '' +echo '' echo CMD: mkdir dir test echo CMD: copy todir test + fileset dir src echo '---------------------------------------------------------------------------------------------' @@ -82,29 +82,29 @@ echo '===============================================================================================' -echo XML: ^Hello World^ -echo CMD: echo # This is Ant version ${ant.version} +echo XML: 'Hello World' +echo CMD: echo \\\# \'This is Ant version \\\${ant.version}\' echo '---------------------------------------------------------------------------------------------' -StartAnt echo # This is Ant version ${ant.version} +StartAnt echo \# 'This is Ant version \${ant.version}' echo '===============================================================================================' -echo XML: ^ -echo ^ -echo ^Ant Version ${ant.version}^ -echo ^End of text^ -echo ^ -echo CMD: concat + fileset dir src includes *.properties - + header # Ant Version ${ant.version} - + footer # End of text +echo XML: '' +echo '' +echo '
Ant Version \${ant.version}
' +echo '
End of text
' +echo '
' +echo CMD: concat + fileset dir src includes \\\*.properties - + header \\\# \'Ant Version \${ant.version}\' - + footer \\\# \'End of text\' echo '---------------------------------------------------------------------------------------------' -StartAnt concat + fileset dir src includes *.properties - + header # Ant Version ${ant.version} - + footer # End of text +StartAnt concat + fileset dir src includes \*.properties - + header \# 'Ant Version \${ant.version}' - + footer \# 'End of text' echo '=============================================================================================' -echo XML: ^ +echo XML: '' echo CMD: ivy:retrieve organisation junit module junit inline true pattern _ivy/[artifact].[ext] echo '---------------------------------------------------------------------------------------------' mkdir _ivy -echo '------ First we ^ Ivy -----' +echo "------ First we '' Ivy -----" rem %START% get dest _ivy/ivy.jar src http://people.apache.org/~xavier/ivy/ivy-trunk.jar echo '------ Then we use Ivy to retrieve JUnit -----' ant -lib build/classes -lib _ivy -main org.apache.ant.javafront.TaskExec -xmlns:ivy=antlib:org.apache.ivy.ant ivy:retrieve organisation junit module junit pattern _ivy/[artifact].[ext] inline true