ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ant-...@apache.org
Subject [Ant Wiki] Updated: AntNewbies
Date Sun, 25 Jul 2004 10:30:14 GMT
   Date: 2004-07-25T03:30:13
   Editor: CharlesJohnson <cehjohnson@aol.com>
   Wiki: Ant Wiki
   Page: AntNewbies
   URL: http://wiki.apache.org/ant/AntNewbies

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -164,3 +164,32 @@
 BUILD SUCCESSFUL
 Total time: 1 second
 }}}
+
+----
+ ```Question#4``` How do i pass src and destfile to bzip2 from the command line?
+This is what i tried:
+
+{{{
+	<target name="bzip2">
+		<echo> BZipping ${in} to ${out} ... </echo>
+		<bzip2> src="${in}" destfile="${out}" </bzip2>
+	</target>
+}}}
+
+and this is how i tried to invoke it and the results:
+
+{{{
+C:\java>ant -Din=jit_interface.pdf -Dout=jit_interface.pdf.bz2 bzip2
+Buildfile: build.xml
+
+bzip2:
+     [echo]  BZipping jit_interface.pdf to jit_interface.pdf.bz2 ...
+
+BUILD FAILED
+C:\java\build.xml:26: The <bzip2> type doesn't support nested text data.
+
+Total time: 3 seconds
+C:\java>
+}}}
+
+Is there any '''other''' way?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message