ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r712688 - /ant/sandbox/javafront/taskexec.sh
Date Mon, 10 Nov 2008 16:34:38 GMT
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 message="Hello World"/^>
-echo CMD: echo message "Hello World"
+echo XML: '<echo message="Hello World"/>'
+echo CMD: echo message \"Hello World\"
 echo -----------------------------------------------------------------------------------------------
 StartAnt echo message "Hello World"
 
 
 echo ===============================================================================================
-echo XML: ^<echo message="This is Ant version ${ant.version}"/^>
-echo CMD: echo message "This is Ant version ${ant.version}"
+echo XML: '<echo message="This is Ant version ${ant.version}"/>'
+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: ^<echoproperties prefix="ant."/^>
+echo XML: '<echoproperties prefix="ant."/>'
 echo CMD: echoproperties prefix ant.
 echo '---------------------------------------------------------------------------------------------'
 StartAnt echoproperties prefix ant.
 
 
 echo '==============================================================================================='
-echo XML: ^<copy file="build.xml" tofile="build.xml.bak"/^>
+echo XML: '<copy file="build.xml" tofile="build.xml.bak"/>'
 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: ^<delete file="build.xml.bak"/^>
+echo XML: '<delete file="build.xml.bak"/>'
 echo CMD: delete file build.xml.bak
 echo '---------------------------------------------------------------------------------------------'
 StartAnt delete file build.xml.bak
@@ -70,10 +70,10 @@
 
 
 echo '==============================================================================================='
-echo XML: ^<mkdir dir="test"/^>
-echo XML: ^<copy todir="test"^>
-echo          ^<fileset dir="src"/^>
-echo      ^</copy^>
+echo XML: '<mkdir dir="test"/>'
+echo XML: '<copy todir="test">'
+echo          '<fileset dir="src"/>'
+echo      '</copy>'
 echo CMD: mkdir dir test
 echo CMD: copy todir test + fileset dir src
 echo '---------------------------------------------------------------------------------------------'
@@ -82,29 +82,29 @@
 
 
 echo '==============================================================================================='
-echo XML: ^<echo^>Hello World^</echo^>
-echo CMD: echo # This is Ant version ${ant.version}
+echo XML: '<echo>Hello World</echo>'
+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: ^<concat^>
-echo          ^<fileset dir="src" includes="*.properties"/^>
-echo          ^<header^>Ant Version ${ant.version}^</header^>
-echo          ^<footer^>End of text^</footer^>
-echo      ^</concat^>
-echo CMD: concat + fileset dir src includes *.properties - + header # Ant Version ${ant.version}
- + footer # End of text
+echo XML: '<concat>'
+echo          '<fileset dir="src" includes="*.properties"/>'
+echo          '<header>Ant Version \${ant.version}</header>'
+echo          '<footer>End of text</footer>'
+echo      '</concat>'
+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: ^<ivy:retrieve xmlns:ivy="antlib:org.apache.ivy.ant" organisation="junit" module="junit"
inline="true" pattern="_ivy/[artifact].[ext]"/^>
+echo XML: '<ivy:retrieve xmlns:ivy="antlib:org.apache.ivy.ant" organisation="junit" module="junit"
inline="true" pattern="_ivy/[artifact].[ext]"/>'
 echo CMD: ivy:retrieve organisation junit module junit inline true pattern _ivy/[artifact].[ext]
 echo '---------------------------------------------------------------------------------------------'
 mkdir _ivy
-echo '------ First we ^<get^> Ivy -----'
+echo "------ First we '<get>' 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



Mime
View raw message