Date: 2004-07-25T03:30:13 Editor: CharlesJohnson <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]