ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Goldman <r...@tinypictures.us>
Subject Re: trouble passing args to <apply>
Date Thu, 13 Jul 2006 22:34:40 GMT
'ant -v' helped, thanks!

Here's a snippet of verbosity i received:

    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Output redirected to
/home/rich/workspace/radar/server/webapp/build/webapp/css/register.css
    [apply] Executing
'/home/rich/workspace/radar/tjlib/server/common/../../tools/bin/linux/csstidy-1.2'
with arguments:
    [apply] '/home/rich/workspace/radar/server/webapp/web/css/settings.css'
    [apply] '--silent=true'
    [apply]
'/home/rich/workspace/radar/server/webapp/build/webapp/css/home/rich/workspace/radar/server/webapp/build/webapp/css/settings.css'

So I had to remove '${deploy.css}' from the <mapper> 'to' attribute. I
don't know if that's a bug or not? I'm just happy it works now.

    <target name="compress-css" depends="clean-css">
        <echo message="Compressing CSS files" />
        <mapper id="css_dir"
              type="glob"
              from="*.css"
              to="*.css"/>  <!-- used to be "${deploy.css}/*.css" -->
        <apply executable="${tools.bin}/csstidy-1.2"
              failonerror="yes" dest="${deploy.css}" verbose="yes"
parallel="false">
            <srcfile/>
            <arg value="--silent=true"/>
            <targetfile/>
                <fileset dir="${web.css.home}" includes="*.css"/>
            <mapper refid="css_dir"/>
            <redirector>
                    <outputmapper refid="css_dir"/>
            </redirector>
        </apply>
        <antcall target="rename-css" />
    </target>




Matt Benson wrote:

>--- Rich Goldman <rich@tinypictures.us> wrote:
>
>  
>
>>Hi, no, that's not it, unfortunately. I just noticed
>>that myself, but it
>>looks I deleted it by accident in the email, not the
>>code itself.
>>    
>>
>
>You can run Ant with the -v "verbose" flag to see the
>command lines generated.
>
>-Matt
>
>  
>
>>Matt Benson wrote:
>>
>>    
>>
>>>>My output files are empty when I run this. Does
>>>>anyone know what I'm
>>>>doing wrong?
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>The first thing I notice is that your commandline
>>>example was --silent=true, but your <arg> element
>>>shows "-silent=true".  Could that be it?
>>>
>>>-Matt
>>>
>>> 
>>>
>>>      
>>>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>user-unsubscribe@ant.apache.org
>>For additional commands, e-mail:
>>user-help@ant.apache.org
>>
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>  
>


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


Mime
View raw message