Hi,

I've add functionality to the Ant Tab Complete file
( __fish_complete_ant_targets.fish ).  The attached file adds support
for looking through the import'ed ant files and support for handling a
<target> any amount of whitespace from the beginning of the line.

The file is attached.

Thanks,


-- 
===================================================
| Steven Knight                   [EMAIL PROTECTED]  |
| UNH Research Computing Center   603-862-3042    |
===================================================

function __fish_complete_ant_targets -d "Print list of targets from build.xml and imported files"
    set buildFile "build.xml"
	if test -f $buildFile
        # show ant targets
        __fish_complete_ant_targets_displayAntTargets $buildFile

        # find files with buildFile
	set files ( sed -n "s/^.*<import[^>]* file=[\"']\([^\"']*\)[\"'].*\$/\1/p" < $buildFile  )

        # iternate through files and display their targets
        for file in $files; 
            __fish_complete_ant_targets_displayAntTargets $file
        end
    end
end

function __fish_complete_ant_targets_displayAntTargets -d "Display targets within an ant build.xml file"
    sed -n "s/^.*<target[^>]* name=[\"']\([^\"']*\)[\"'].*\$/\1/p" < $argv[1]
end
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to