Permalink
Browse files

Upload file to YUI Compressor instead.

Older versions of cURL don't accept the --data-ascii option.
  • Loading branch information...
reid committed Oct 20, 2010
1 parent 76ffa2e commit df4af4ab795d38e9368e3cfc3df3af98e40aa4dc
Binary file not shown.
@@ -85,10 +85,10 @@
<property name="yuicompressor.output" value="@{dest}"/>
<property name="yuicompressor.file" value="@{src}"/>
<echo>If this web request fails, try building again with -Dyuicompressor.online=false or install the cURL executable into your PATH.</echo>
- <exec executable="curl" input="@{src}" outputproperty="yuicompressor.result" failonerror="true">
+ <exec executable="curl" input="@{src}" outputproperty="yuicompressor.result" failonerror="true" searchpath="true">
<arg value="--silent"/>
- <arg line="--data-urlencode "/>
- <arg line="@${yuicompressor.file}"/>
+ <arg line="-T"/>
+ <arg line="${yuicompressor.file}"/>
<arg line="${yuicompressor.url}?type=@{type}"/>
</exec>
<script language="javascript">

0 comments on commit df4af4a

Please sign in to comment.